This is a migrated thread and some comments may be shown as answers.

Adding a new report to an exsisting application

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott Eoff
Top achievements
Rank 2
Scott Eoff asked on 16 Jul 2009, 06:14 PM
I'm not sure if this can be done or not. I've looked through the documentation and haven't found anything as of yet. I'm trying to figure out if we can build telerik reports and add/copy the report to an already live existing project without the need to add the report to the project or solution and then recompiling the project. We are often asked to add a report to a site that is already active. We currently using active reports which can do this, but we are looking at moving to telerik reports. We build our projects to actively look at a certain directory to show the current list of reports to choose from to run. We often will build a new report and add it to the directly without recompiling the project to recognize the new report.

Can anyone help with an answer?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 Jul 2009, 03:54 PM
Hi Scott Eoff,

You should not have any problems to do this. Add/Remove a report in your class library and rebuild it on your local machine - then copy the new assembly to your server. Upon changing it, your app pool should be recycled. The tricky part is the reference to the reports - if they're hard-coded, it would be a tedious job to do this for each new report. However you can use reflection to "scan through" for available types and once you have the type you can always create an instance of the report using Activator.CreateInstance(). Open our VS examples and check out the ReportViewer.aspx.cs and ReportExplorer.cs files for code sample to see how we're doing it.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Scott Eoff
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or