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:
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
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