I'm currently trialling Reporting, and am a little confused as to how to export a report with data from C#.
I am using the standalone report designer to save a trdx file using the ObjectDataSource and I'm trying to export to PDF, looking at the KB I have the following code block:
Order tempOrder =
Telerik.Reporting.Report report =
report.DataSource = tempOrder;
System.Collections.Hashtable deviceInfo =
UriReportSource reportSource =
reportSource.Uri = @
"E:\Program Files (x86)\Telerik\Reporting Q2 2014\Report Designer\Examples\Order.trdx"
Telerik.Reporting.Processing.ReportProcessor reportProcessor =
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport(
, reportSource, deviceInfo);
fileName = result.DocumentName +
path = System.IO.Path.GetTempPath();
filePath = System.IO.Path.Combine(path, fileName);
(System.IO.FileStream fs =
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
Which seems to output a pdf using my trxd file however I can find no way to pass in both the data source (or the Report variable with data source defined) and the path to the trdx file.