Page 1 of 1

StiWebViewer does not show data (Version 2016.07.15)

Posted: Mon Jul 25, 2016 7:05 am
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 ?

Re: StiWebViewer does not show data (Version 2016.07.15)

Posted: Tue Jul 26, 2016 8:49 am
by Alex K.
Hello,

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

Thank you.

Re: StiWebViewer does not show data (Version 2016.07.15)

Posted: Thu Jul 28, 2016 9:22 am
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

Re: StiWebViewer does not show data (Version 2016.07.15)

Posted: Thu Jul 28, 2016 12:57 pm
by Alex K.
Hello,

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

Thank you.

Re: StiWebViewer does not show data (Version 2016.07.15)

Posted: Thu Jul 28, 2016 2:27 pm
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

Re: StiWebViewer does not show data (Version 2016.07.15)

Posted: Fri Jul 29, 2016 6:43 am
by Alex K.
Hello,

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

Thank you.