My report runs fine in the viewer and you can still export it from the viewer, but programatically exporting the report now fails after going from 2012 Q1 to Q2 (6.0.12.215 to 6.1.12.611).
Code:
Telerik.Reporting.Report rpt = new TED.Web.Defender.DReport { DataSource = reportData };
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = rpt;
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
Error:
{"Object reference not set to an instance of an object."}
Stack trace:
at Telerik.Reporting.Processing.ExternalStyleSheetAdapter.Fill(ICollection`1 styleRules)
at Telerik.Reporting.Processing.Report.LoadExternalStyleRules()
at Telerik.Reporting.Processing.Report.InitializeItem()
at Telerik.Reporting.Processing.ItemFactory.CreateItem(Object itemDef)
at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, IDictionary processingContext)
at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext)
at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
at Defender_DefenderReporting.ExportReport() in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 423
at Defender_DefenderReporting.cmdExportReport_Click(Object sender, EventArgs e) in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 466
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Code:
Telerik.Reporting.Report rpt = new TED.Web.Defender.DReport { DataSource = reportData };
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = rpt;
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
Error:
{"Object reference not set to an instance of an object."}
Stack trace:
at Telerik.Reporting.Processing.ExternalStyleSheetAdapter.Fill(ICollection`1 styleRules)
at Telerik.Reporting.Processing.Report.LoadExternalStyleRules()
at Telerik.Reporting.Processing.Report.InitializeItem()
at Telerik.Reporting.Processing.ItemFactory.CreateItem(Object itemDef)
at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, IDictionary processingContext)
at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext)
at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
at Defender_DefenderReporting.ExportReport() in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 423
at Defender_DefenderReporting.cmdExportReport_Click(Object sender, EventArgs e) in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 466
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)