Page 1 of 3
Error in paging a report
Posted: Fri Apr 02, 2010 10:21 am
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???
Error in paging a report
Posted: Sat Apr 03, 2010 2:49 am
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.
Error in paging a report
Posted: Mon May 10, 2010 8:04 am
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();
Error in paging a report
Posted: Mon May 10, 2010 12:06 pm
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.
Error in paging a report
Posted: Tue May 11, 2010 12:32 pm
by MikeD
The report is being rendered from the
Page_Init Event within the Postback. The next page doesn't post a postback event.
Error in paging a report
Posted: Thu May 13, 2010 12:52 pm
by MikeD
Anyone have an idea as to what's going on???
This is still giving us a problem.
Error in paging a report
Posted: Fri May 14, 2010 7:03 am
by Vladimir
Hello, Mike
Try to modify your code as follows:
Does this solve your problem?
Thank you.
Error in paging a report
Posted: Tue May 25, 2010 10:46 am
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.
Error in paging a report
Posted: Wed May 26, 2010 1:36 am
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.
Error in paging a report
Posted: Wed May 26, 2010 8:47 am
by MikeD
What SeverTimeOut property are you referring to???