ReportDesigner.Design() ThreadAbortException
Posted: Wed Apr 16, 2014 10:38 am
hello,
in my application I use a button to open the designer.
protected void DesignReport_Click(object sender, EventArgs e)
{
StiReport stiReport = new StiReport();
stiReport.Load(Server.MapPath("~/Reports/Templates/Test.mrt"));
try
{
stiReport.DataStore.RegData("ReportData", "Test");
this.ReportDesigner.Report= stiReport;
this.ReportDesigner.Design();
}
catch (ThreadAbortException exception)
{
RadWindowManager.RadAlert(exception.Message, 350, 100, "XXX", null);
}
}
I get the following error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
I searched nearly 2 days for any solution and could not find anything.
Any ideas?
in my application I use a button to open the designer.
protected void DesignReport_Click(object sender, EventArgs e)
{
StiReport stiReport = new StiReport();
stiReport.Load(Server.MapPath("~/Reports/Templates/Test.mrt"));
try
{
stiReport.DataStore.RegData("ReportData", "Test");
this.ReportDesigner.Report= stiReport;
this.ReportDesigner.Design();
}
catch (ThreadAbortException exception)
{
RadWindowManager.RadAlert(exception.Message, 350, 100, "XXX", null);
}
}
I get the following error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
I searched nearly 2 days for any solution and could not find anything.
Any ideas?