StiWebViewer does not show data (Version 2016.07.15)

Stimulsoft Reports.WEB discussion
Post Reply
martinxmueller
Posts: 8
Joined: Fri Oct 26, 2012 10:12 am

StiWebViewer does not show data (Version 2016.07.15)

Post by martinxmueller »

I updated from 2016.1 to 2016.07.15 due to problems with nullable types in report designer.

After that the StiWebViewer does not show any data. I set the following properties:

StiOptions.Web.AllowUseResponseFlush = false

// my StiWebViewer variable is myWebViewer
myWebViewer.CurrentPage = 0;
myWebViewer.GlobalizationFile = GetLocalizationFile();
myWebViewer.PrintDestination = StiPrintDestination.WithPreview
myWebViewer.Report = stimulReport
myWebViewer.ViewMode = StiWebViewMode.WholeReport;
myWebViewer.AllowBookmarks = true;
myWebViewer.ScrollbarsMode = true;
myWebViewer.PrintMode = StiPrintMode.WholeReport;
myWebViewer.ContentAlignment = StiContentAlignment.Center;

After 'myWebViewer.Report = stimulReport', the value of property myWebViewer.Report.RenderedPages.Items.Length is 2.

Response as PDF works like expected: StiReportResponse.ResponseAsPdf(MyPage, stimulReport, true);
Report is also displayed correctly in report designer.

What's wrong ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiWebViewer does not show data (Version 2016.07.15)

Post by Alex K. »

Hello,

Can you please send us a simple project which reproduces the issue for analysis.

Thank you.
martinxmueller
Posts: 8
Joined: Fri Oct 26, 2012 10:12 am

Re: StiWebViewer does not show data (Version 2016.07.15)

Post by martinxmueller »

Hello,

it works fine with Firefox, but does not work with Internet Explorer 11.

Building a small example is not so easy, we have a complex environment.

Best regards
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiWebViewer does not show data (Version 2016.07.15)

Post by Alex K. »

Hello,

It is difficult to say something about the issue without a sample.

Thank you.
martinxmueller
Posts: 8
Joined: Fri Oct 26, 2012 10:12 am

Re: StiWebViewer does not show data (Version 2016.07.15)

Post by martinxmueller »

Hello,

the problem could be that i don't set some expected parameters. I get a JS-Error after the following method is called:

StiJsViewer.prototype.showReportPage = function (htmlText, jsObject)

The argument 'htmlText' is 'undefined' -> that causes errors.
What should i set at server-side in order to get valid 'htmlText' ?

My page definition is simple, but a lot of things are done server-side:

<body style="height: 100%">
<form id="form1" method="post" runat="server" style="height: 100%; width: 100%">
<div >
<asp:TextBox ID="ErrorTextBox" runat="server" ForeColor="Red" TextMode="MultiLine"
Visible="False" Width="100%" Height="50px"></asp:TextBox>
</div>
<div>
<cc2:StiWebViewer ID="StiWebViewer1" runat="server" EnableViewState="True"
Width="100%"
BookmarksTreeHeight="600"
Height="820px"
ZoomPercent="100"
PrintDestination="Pdf"
ToolBarBackColor="WhiteSmoke"
Theme="Office2013"
/>
</div>
</form>
</body>


Best regards
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: StiWebViewer does not show data (Version 2016.07.15)

Post by Alex K. »

Hello,

Can you please send us a simple project which reproduces the issue for analysis.

Thank you.
Post Reply