Error in paging a report

Stimulsoft Reports.WEB discussion
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Error in paging a report

Post by MikeD »


I view a report. Only has 6 pages.

When I click on the right arrow to go to the next page the report goes blank.

I run the report again...and it works fine.

This a bug???
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Error in paging a report

Post by Jan »

Hello Mike,

This problem depend from many parameters. Can you say which viewer you are use? Which code you use in PageLoad event? Which settings you use for viewer?

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Error in paging a report

Post by MikeD »


Just got back to trying to fix this issue. For a while it seemed to be working right..but it's not again.

Here's the code I'm using to render the report.

StiReportWebViewer.RenderMode = Stimulsoft.Report.Web.StiRenderMode.UseCache;

DataSet ds = null;

// ----------------------------------------------------------------------------------------------------------
// Build the Sql from the report/columns. Then call Search to return the dataset based on the current user.
// ----------------------------------------------------------------------------------------------------------

ds = ReportHelper.Instance.GetDataSetForReports(stiReport, reportFilters);

// ----------------------------------------------------------------------------------------------------------
// Assign returned data from dataset into the report and display it.
// ----------------------------------------------------------------------------------------------------------

stiReport.Compile();
stiReport.RegData(ds);
stiReport.Render();

Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Error in paging a report

Post by Jan »

Hello Mike,

Please show me aspx declaration of StiWebViewer component. Also say me which event of page you use to render report?

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Error in paging a report

Post by MikeD »







The report is being rendered from the
Page_Init Event within the Postback. The next page doesn't post a postback event.


MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Error in paging a report

Post by MikeD »

Anyone have an idea as to what's going on???

This is still giving us a problem.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Error in paging a report

Post by Vladimir »

Hello, Mike

Try to modify your code as follows:
Does this solve your problem?

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Error in paging a report

Post by MikeD »


Adding the RenderMode="AjaxWithCache" helped...HOWEVER...there's still a problem with paging.

If a user navigates through the report going back and forth then sometimes the it seems to loose the report. The report can be as few as 5 pages. The easiest way to make the paging go haywire....is to click on the LastPage button. Then the FirstPage button...then the next page...Do that a couple of times...and then report goes blank and lost all navigation.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Error in paging a report

Post by Vladimir »

Hello, Mike

Most probably, this is connected with removing a report from the server cache due to time expiration. Please, try to increase the time of storing reports in the server cache. Set the required value in the ServerTimeOut property.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

Error in paging a report

Post by MikeD »


What SeverTimeOut property are you referring to???
Post Reply