We just discovered a problem in WebViewerFx where an exception will be thrown when the user tries to export the report in certain format after upgrading to the 2013.2 release. For example if the users tries to export the report in Excel or OpenDocument Calc format via the corresponding options under the Save menu, an exception will be thrown. I have tried both the release version 2013.2.1700 and the prerelease 2013.3.1701, and they all exhibits the same problem.
Code: Select all
Exception information:
Exception type: InvalidCastException
Exception message: Unable to cast object of type 'Stimulsoft.Report.Export.StiExcelExportSettings' to type 'Stimulsoft.Report.Export.StiExcel2007ExportSettings'.
at Stimulsoft.Report.WebFx.StiExportsClass.ExportReport(Page page, StiReport report, StiExportSettings settings, Boolean saveFileDialog, StiHtmlImageHost htmlImageHost)
at Stimulsoft.Report.WebFx.StiWebViewerFx.ExportReport(String postString, Boolean email)
at Stimulsoft.Report.WebFx.StiWebViewerFx.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Code: Select all
Stack trace: at Stimulsoft.Report.WebFx.StiExportsClass.ExportReport(Page page, StiReport report, StiExportSettings settings, Boolean saveFileDialog, StiHtmlImageHost htmlImageHost)
at Stimulsoft.Report.WebFx.StiWebViewerFx.ExportReport(String postString, Boolean email)
at Stimulsoft.Report.WebFx.StiWebViewerFx.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)