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

Report Designer, *.trdx and Telerik.Reporting.Report

3 Answers 210 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 02 Nov 2012, 01:07 PM
Hi all

I use two versions of the report

1. I use the fixed report, which I created through wizard NewItem -> Reporting -> TelerikReport Q3 2012. Was created a new class (FixedReport) and it was automatically inherited from: Telerik.Reporting.Report - he work perfectly.
In the class FixedReport I create my user function which also work well

2. Customer with Telerik Report Designer create a report-file with extension trdx. I load it into a byte array and work with it:

// ...
 
using (var reader = XmlReader.Create(stream, settings))
{
    var xmlSerializer = new ReportXmlSerializer();
 
    var reportDocument = (Telerik.Reporting.Report)xmlSerializer.Deserialize(reader);
     
    // ....
     
    return new InstanceReportSource { ReportDocument = reportDocument };
}

How do I make my object "reportDocument" was not an object of type Report, but was the object of my type, inherited from the Report (like my first version).

Please help

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 06 Nov 2012, 01:05 PM
Hi Hans,

From your post It is not clear what is your exact inquiry i.e.:
  • you want to create a base report and deserialize the XML file of your client to your base type?
  • you want your client to be able to use the user function you have created?

If the latter, then please review the following help article: Extending Report Designer. If the first, then it would not be possible as the dedicated ReportXmlSerializer class only works with Telerik.Reporting.Report.

Regards,
Steve
the Telerik team

HAPPY WITH TELERIK 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!

0
Hans
Top achievements
Rank 1
answered on 20 Nov 2012, 06:49 AM
Yes, I want option number one, please
0
Steve
Telerik team
answered on 22 Nov 2012, 10:01 AM
Hi Hans,

We've just listed our guesses on what you want to accomplish, those are not options. As mentioned in our previous post, the first guess would not work as the dedicated ReportXmlSerializer class used to serialize/deserialize the reports only works with the base class Telerik.Reporting.Report and is not aware of any other types.

Regards,
Steve
the Telerik team

HAPPY WITH TELERIK 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
Hans
Top achievements
Rank 1
Answers by
Steve
Telerik team
Hans
Top achievements
Rank 1
Share this question
or