This is a migrated thread and some comments may be shown as answers.

Report Processing error after updating from 2012 Q1 to Q2

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dalila Uriarte
Top achievements
Rank 1
Dalila Uriarte asked on 16 Aug 2012, 06:06 AM
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)

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Aug 2012, 01:45 PM
Hello John,

You should not experience such problems with the latest internal build. Please download it from your account, close all Visual Studio instances and install it on top of the existing Q2 installation (i.e. no need to uninstall previous version). Then go through the upgrade wizard.

Regards,
Peter
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Dalila Uriarte
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or