Blank report in StiWebViewerFx

Stimulsoft Reports.WEB discussion
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

Blank report in StiWebViewerFx

Post by MartinB »

Hi,

I have serveral reports that when shown using StiWebViewerFx just appear blank most of the time, when the web application is hosted on a remote web server. However if I run the web application locally and get data from the remote server the reports usually show correctly.

I assume that this is some kind of timeout issue?

I have tried setting timeout properties (as shown below) but the problem remains.

this.Server.ScriptTimeout = 600;
StiWebViewerFx1.ServerTimeout = new TimeSpan(0, 3, 0);
Stimulsoft.Report.WebFx.StiWebViewerFxOptions.Connection.ClientRequestTimeout = 180;
StiWebViewerFx1.Report = objReport;

The problem also occurs in the StiWebDesigner preview, which either shows a server timeout error or a blank report.

I was running verson 2012.1 ultimate, and I have also tried the latest pre release.

Can anyone please help? - I really need to find a solution to this issue quickly.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Blank report in StiWebViewerFx

Post by Vladimir »

Hello,

Please specify how many pages (and the rows in the database) contain your report? Does it contain images? Does the correct work depend on the report size?

Thank you.
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

Blank report in StiWebViewerFx

Post by MartinB »

Thanks Vladimir.

In one example the report contain 612 pages from 16280 rows of data. Only the title band of the report contains an image (company logo) which we use on all reports. Yes smaller reports with about 150 pages work fine.

If I enable caching (ReportCacheMode = StiReportCacheMode.Auto and the viewer CacheMode = Stimulsoft.Report.WebFx.StiWebViewerFx.StiCacheMode.Page) then the report will show the first page, and the last 48 pages, but pages 2 - 564 are blank.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Blank report in StiWebViewerFx

Post by Vladimir »

Hello,

Please tell us the time after which the viewer displays a blank page. Also, please try to set a ServerTimeout property on the aspx page:
cc1:StiWebViewerFx ID="StiWebViewerFx1" runat="server" ServerTimeout="00:30:00"
This property affects the time that the report is stored in the server cache.

Also, please try to upgrade to the latest prerelease build.

Thank you.
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

Blank report in StiWebViewerFx

Post by MartinB »

Hi,

I have tried adding the ServerTimeout as you suggested (and I was already setting ServerTimeout in code as shown in my original post), and I am already running the latest prerelease build.

The aspx page calls a web service to get the dataset for the report which takes about 70 seconds, then calls RegData for the report, and assigns the report to the StiWebViewerFx control. The viewer control then shows the loading report progress bar for about 6 seconds, and renders the first page and the last 48 pages, but all the pages in between are blank.
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

Re: Blank report in StiWebViewerFx

Post by MartinB »

Can anyone please help with this?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Blank report in StiWebViewerFx

Post by HighAley »

Hello.

The Report Cache Mode property of the report isn't supported by WebViewerFx.

Also, this error can occur during long-term execution of the script on the server side (the building of large and complex report). Please try to increasing the timeout of the script on your IIS server.

Also try to set caching priority:

Code: Select all

<cc1:StiWebViewerFx ID="StiWebViewerFx1" runat="server" CacheItemPriority="Normal">
This property was added to our last prerelease build.

Thank you.
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

Re: Blank report in StiWebViewerFx

Post by MartinB »

Hi,

I have tried setting CacheItemPriority as you have suggested. Also the IIS script timeouts are set at 15 minutes, in code I set the timeouts to 5 minutes.

Attached is an example report that was produced by my ASPX page, the page first gets the dataset for the report which took 1 minute 50 seconds, then the dataset is assigned to the report:

Report.BusinessObjectsStore.Clear();
DataSet objDataSet = BLL.Context.Report.Report_GetReportData(objReportID, strResourceLocation, objQueryParams);
Report.RegData("MLS", objDataSet);
if (objReportDetail != null)
{
ReportVariableAdd(Report, "@Summary", objReportDetail.Report_Summary ?? String.Empty);
}
Report.Dictionary.Synchronize();

Then the report is assigned to the viewer:

this.Server.ScriptTimeout = 300;
StiWebViewerFx1.ServerTimeout = new TimeSpan(0, 5, 0);
StiWebViewerFx1.CacheMode = Stimulsoft.Report.WebFx.StiWebViewerFx.StiCacheMode.Page;
Stimulsoft.Report.WebFx.StiWebViewerFxOptions.Connection.ClientRequestTimeout = 300;
StiWebViewerFx1.Report = objReport;

The viewer displays the loding report progress bar for about 6 seconds and then renders the report, but still only the first page and about the last 50 pages, all the pages in between are blank. The total time for the whole process was less than 2 minutes, so I'm not sure the problem is being caused by a timeout?

The rendered report is atached saved as a PDF.
MartinB
Posts: 15
Joined: Wed May 02, 2012 11:02 am

Re: Blank report in StiWebViewerFx

Post by MartinB »

Here is the report attachment for my previous post...
Attachments
Report.pdf
Example report output
(468.71 KiB) Downloaded 1274 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Blank report in StiWebViewerFx

Post by Vladimir »

Hello,

Please try to use this option:

Code: Select all

.....
objReport.ReportCacheMode = StiReportCacheMode.Off;
StiWebViewerFx1.Report = objReport;
Thank you.
Post Reply