I am trying to move a project from the Visual Studio Report Designer to the standalone Report Designer. Most of my reports are inherited from Telerik.Reporting.Report, so I want to be able to keep the custom code in each class, but to load the report from a TRDP file.
The class definition and constructor of my classes looks something like:
public
partial
class
MyReport : Telerik.Reporting.Report
{
public
MyReport()
{
InitializeComponent();
// ... class specific code ...
}
}
I would like to be able to initialize the report with a trdp file to look something like the following:
public
class
MyReport : Telerik.Reporting.Report
{
public
MyReport()
{
LoadReport(
"c:\SomeFolder\MyReport.tdrp"
);
// or
LoadReport(Resources.MyReport);
// ... class specific code ...
}
}
Any ideas or am I completely doing it wrong?