I've just upgraded to the 611 version and I can no longer successfully build my solution. It seems that the RenderReport method will no longer accept a ReportBook parameter although all the documentation claims that it does.
My scenario is that I create a ReportBook from 3 Reports and then pass it over to the ExportToPDF method. I now get the following compile time errors.
Error 66 Argument 2: cannot convert from 'Telerik.Reporting.ReportBook' to 'Telerik.Reporting.ReportSource'
Error 65 The best overloaded method match for 'Telerik.Reporting.Processing.ReportProcessor.RenderReport(string, Telerik.Reporting.ReportSource, System.Collections.Hashtable)' has some invalid arguments
I have tried multiple ways to configure this using the ReportSource class but am unable to figure out how this works.
Your assistance, as always, is greatly appreciated.
Thanks
Clyde
My scenario is that I create a ReportBook from 3 Reports and then pass it over to the ExportToPDF method. I now get the following compile time errors.
Error 66 Argument 2: cannot convert from 'Telerik.Reporting.ReportBook' to 'Telerik.Reporting.ReportSource'
Error 65 The best overloaded method match for 'Telerik.Reporting.Processing.ReportProcessor.RenderReport(string, Telerik.Reporting.ReportSource, System.Collections.Hashtable)' has some invalid arguments
void ExportToPDF(string reportName, Telerik.Reporting.IReportDocument reportToExport) { ReportProcessor reportProcessor = new ReportProcessor(); RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null); using (FileStream fs = new FileStream(fileName, FileMode.Create))
{ fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length); } }I have tried multiple ways to configure this using the ReportSource class but am unable to figure out how this works.
Your assistance, as always, is greatly appreciated.
Thanks
Clyde