I would like to save the report in XML format to a database and load them in to ReportViewer control at run time.
2 Answers, 1 is accepted
0
Steve
Telerik team
answered on 22 Aug 2012, 01:07 PM
Hello,
With the introduction of the XML report definition the reports can exist not only as CLR types and objects in the memory but as XML markup stored in different ways (file, database, etc.). As we do not want to limit the users to work with only objects or files the need for a unified way for referencing reports in the applications emerged - Report Sources.
To show a report created with the standalone designer (.trdx file), you can use UriReportSource:
If you have saved the xml to your database, then you can utilize XmlReportSource directly.
If you prefer to work with CLR types and objects, you can deserialize the xml report definition as shown in the Serializing Report Definition in XML help article and proceed from there like you would normally do following the basic concepts of the programming language and the .NET platform.
Kind regards,
Steve
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 >