StiWebViewer does not show data (Version 2016.07.15)
-
- Posts: 8
- Joined: Fri Oct 26, 2012 10:12 am
StiWebViewer does not show data (Version 2016.07.15)
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 ?
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)
Hello,
Can you please send us a simple project which reproduces the issue for analysis.
Thank you.
Can you please send us a simple project which reproduces the issue for analysis.
Thank you.
-
- Posts: 8
- Joined: Fri Oct 26, 2012 10:12 am
Re: StiWebViewer does not show data (Version 2016.07.15)
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
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)
Hello,
It is difficult to say something about the issue without a sample.
Thank you.
It is difficult to say something about the issue without a sample.
Thank you.
-
- Posts: 8
- Joined: Fri Oct 26, 2012 10:12 am
Re: StiWebViewer does not show data (Version 2016.07.15)
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
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)
Hello,
Can you please send us a simple project which reproduces the issue for analysis.
Thank you.
Can you please send us a simple project which reproduces the issue for analysis.
Thank you.