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

clone report in code at runtime

1 Answer 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 28 Jan 2013, 03:26 PM
I have a report which i am using recursively as a subreport.
At runtime, i modify the report based on user inputs (I add some columns, sorting,  groupings, etc.).
I would like to clone the already customized report instance so that I can provide it as the subreport reportsource without having to redo the customization for every single instance. 

Is there an easy way to do that? Are report instances Clonable?

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 31 Jan 2013, 12:19 PM
Hi Ivo,

There isn't a deep clone of the report but you can serialize and deserialize it to get a copy easily. 
 

Kind regards,
Elian
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Ivo
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or