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

Open a report.trdx in ReportViewer

4 Answers 1360 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 22 Feb 2012, 02:57 PM
Hi,

Is there a way to open a report.trdx (made in the new designer) in the ReportViewer? I want to do this in code.

Regards,
Hans

4 Answers, 1 is accepted

Sort by
0
Accepted
Hadib Ahmabi
Top achievements
Rank 1
answered on 22 Feb 2012, 03:13 PM
It's just like using a serialized report - you deserialize it and instantiate it.
http://www.telerik.com/help/reporting/programmatic-xml-serialization.html 

Paul
Top achievements
Rank 2
Iron
Iron
Iron
commented on 24 Nov 2022, 02:48 PM

That link does not have the text ReportViewer in it.
How do I link the xml to the ReportViewer component?

Todor
Telerik team
commented on 29 Nov 2022, 09:41 AM

Hi Paul,

The TRDX file is a pure XML, so you may save your XML to a TRDX file and pass a reference to it from the viewer through the UriReportSource Uri property.

Another option is to utilize XmlReportSource. In its Xml property, you may specify the XML of the report definition. If you use Html5 Viewer or another viewer that requires a Reporting REST Service, you will need to create a Custom Report Source resolver. The reason is that we provide built-in resolvers only for the UriReportSource and the TypeReportSource for these viewers.

0
Hans
Top achievements
Rank 1
answered on 22 Feb 2012, 03:22 PM
Thanks, how simple is that :-)!!
0
Darrell
Top achievements
Rank 1
answered on 02 Jul 2012, 08:13 AM
This answer isn't clear enough. Could you please post the entire code-behind code with the trdx being somehow assigned to a web viewer.
0
Steve
Telerik team
answered on 02 Jul 2012, 08:27 AM
Hi Darrell,

You can find such info in the respective topics depending on which report viewer you utilize e.g.: How to: Add report viewer to a web page.

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 >

Tags
General Discussions
Asked by
Hans
Top achievements
Rank 1
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Hans
Top achievements
Rank 1
Darrell
Top achievements
Rank 1
Steve
Telerik team
Share this question
or