I am trying to open a report in PDF format using ResponseAsPdf.
The report showing in PDF format, but am also seeing the following error in exception
"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack".
The code I am using to generate the report is as follows:
Code: Select all
report.Render();
StiWebViewer1.Report = report;
StiReportResponse.ResponseAsPdf(this.Page, report, false);
StiOptions.Web.AllowUseResponseFlush = false;
Thanks.