Report1.cs,..... reportn.cs...
That way I do not have to recreate most things and quickly get results...
Thanks,
G
8 Answers, 1 is accepted
You cannot make a copy of report to a new object. Telerik Reports are .NET classes and in Visual Studio they usually appear in a couple of code files and a resource file (if any) just like any other class (ex. Windows Forms Form). To duplicate such classes you have to use the IDE's built-in functionality.
Besides the copy-paste-rename approach there are other way to achieve similar results using object inheritance (check this forum thread); as far as Telerik Reports are concerned you may also nest reports (through the SubReport item) to create compound reports.
Peter
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Best regards,
G
The design time issue is that the base report sections can only be changed and displayed in the base report itself. I have attached a sample to illustrate the suggested report inheritance approach. Still if you want to avoid the report inheritance approach the SubReports as report components is a nice solution.
Greetings,Peter
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Check out the attached video that demonstrates how to utilize the report inheritance approach.
Greetings,Peter
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
The best asset have in addition to the quality of your products is your tech support.
Thanks Peter and my apologies for not seeing the obvious.
Best to you,
G.
Using the exact project provided here as a demo if I add parameters to the base constructor and pass those parameters on the constructor of the report that is inheriting from the base I receive the error "Constructor on type "xxxxxx" not found." when attempting to view the reports inheriting from the base report in the designer. What do I need to do to allow me to use inheritance and have parameters in my base constructor?
Just to be clear to reproduce the issue I am referring to here please take the demo application provided by Peter and make the following changes:
BaseReport.CS line 24:
public
BaseReport(
string
test)
Report1.cs line 15:
public
Report1():
base
(
string
.Empty)
Thanks in advance for any help it is appreciated.
Generally the designers rely on the default constructors. Thus our suggestion is to use only default constructors and use other ways for passing the data like properties.
All the best,Peter
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >