Page 1 of 1

Problem with Stimulsoft.Report.Dialogs.StiWinDialogsProvider

Posted: Mon Apr 13, 2015 2:07 pm
by MK.Persia
hi,
I'm trying to view a report in StiWebViewerSL, and I have no errors in debug time, but at run time this happens:

Exception occurred during the execution (yellow page)
[NullReferenceException: Object reference not set to an instance of an object.]
Stimulsoft.Base.StiExceptionForm..ctor(Exception exception) +754
Stimulsoft.Base.StiExceptionProvider.Show(Exception exception) +116
Stimulsoft.Report.Dialogs.StiWinDialogsProvider.RenderForm(IStiForm formControl) +402
Stimulsoft.Report.Dialogs.StiWinDialogsProvider.Render(StiReport report, StiFormStartMode startMode) +245
Stimulsoft.Report.Engine.StiRenderProviderV2.RenderFormsOnStart(StiReport report) +128
Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state) +5907
Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState) +1227
Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState) +2037
Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode) +943
Stimulsoft.Report.WebSL.StiWebViewerSL.set_Report(StiReport value) +280

I think it has something to do with loading assemblies that RenderForm method is depended on. any idea?
thanks in advanced.

aspx code:

Code: Select all

<body>

    <form id="Reportform" runat="server">
        <cc1:StiWebViewerSL ID="stiViewer" runat="server" Width="100%" Height="700" AutoMaximize="true" />
    </form>

</body>

Code: Select all

//do some business stuff

// instance which creates Stimulsoft report document
var marshal = ReportMarshal.CreateInstance("BusinessLayer.FGReportMarshal"); 
 
//generates Stimulsoft report and registers data
var requestID = marshal.RequestReportView(businessreport, authenticationInfo, dataLimitation, dataFilters);
 var reportFile = marshal.GetReport(requestID);

stiViewer.Report = reportFile.ReportFileDocument as StiReport;

Re: Problem with Stimulsoft.Report.Dialogs.StiWinDialogsProv

Posted: Wed Apr 15, 2015 5:44 am
by HighAley
Hello.

At first, please, try to upgrade to the latest release.
Let us know if you still get the same error.

Thank you.

Re: Problem with Stimulsoft.Report.Dialogs.StiWinDialogsProv

Posted: Wed Apr 15, 2015 9:31 am
by MK.Persia
tanks for the reply,
OK, after updating to 14.3 exception message changed to:

Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

stack trace:
System.Windows.Forms.Form.ShowDialog(IWin32Window owner) +5370230
Stimulsoft.Base.StiExceptionProvider.Show(Exception exception) +152
Stimulsoft.Report.Dialogs.StiWinDialogsProvider.RenderForm(IStiForm formControl) +403
Stimulsoft.Report.Dialogs.StiWinDialogsProvider.Render(StiReport report, StiFormStartMode startMode) +259
Stimulsoft.Report.Engine.StiRenderProviderV2.RenderFormsOnStart(StiReport report) +157
Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state) +7343
Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState) +1375
Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState) +2674
Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode) +1087
Stimulsoft.Report.WebSL.StiWebViewerSL.set_Report(StiReport value) +279

what should I do?

Re: Problem with Stimulsoft.Report.Dialogs.StiWinDialogsProv

Posted: Wed Apr 15, 2015 12:53 pm
by HighAley
Hello.

Sorry for previous wrong advice.
The Forms are not supported in Silverlight.

Thank you.