Отображение заранее подготовленного отчета в StiWebViewer
Добавлено: 01 мар 2010, 12:19
Здравствуйте!
Пытаюсь отобразить заранее подготовленный отчет в StiWebViewer:
Получаю ошибку:
Unable to cast object of type 'Stimulsoft.Report.Components.StiPage' to type 'Stimulsoft.Report.Components.StiPage'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'Stimulsoft.Report.Components.StiPage' to type 'Stimulsoft.Report.Components.StiPage'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Unable to cast object of type 'Stimulsoft.Report.Components.StiPage' to type 'Stimulsoft.Report.Components.StiPage'.] Stimulsoft.Report.Web.StiWebViewer.GetWebForm(StiReport report) +126 Stimulsoft.Report.Web.StiWebViewer.get_IsWebFormReport() +12 Stimulsoft.Report.Web.StiWebViewer.CreateChildControls() +199 System.Web.UI.Control.EnsureChildControls() +87 Stimulsoft.Report.Web.StiWebViewer.OnLoad(EventArgs e) +53 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsync
В чем может быть проблема и как решить?
Спасибо
Пытаюсь отобразить заранее подготовленный отчет в StiWebViewer:
Код: Выделить всё
Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();
report.LoadDocument(reportStream);
WebStiReport.Report = report;
Unable to cast object of type 'Stimulsoft.Report.Components.StiPage' to type 'Stimulsoft.Report.Components.StiPage'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'Stimulsoft.Report.Components.StiPage' to type 'Stimulsoft.Report.Components.StiPage'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Unable to cast object of type 'Stimulsoft.Report.Components.StiPage' to type 'Stimulsoft.Report.Components.StiPage'.] Stimulsoft.Report.Web.StiWebViewer.GetWebForm(StiReport report) +126 Stimulsoft.Report.Web.StiWebViewer.get_IsWebFormReport() +12 Stimulsoft.Report.Web.StiWebViewer.CreateChildControls() +199 System.Web.UI.Control.EnsureChildControls() +87 Stimulsoft.Report.Web.StiWebViewer.OnLoad(EventArgs e) +53 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsync
В чем может быть проблема и как решить?
Спасибо