Page 1 of 1

Viewer paging issues and more...

Posted: Fri Aug 10, 2012 2:46 pm
by lloydk
I've just started using Stimulsoft for reporting as I have to build a web portal to some of our existing Stimulsoft reports.

I started an ASP.NET 4 Web Project with a single page, dumped an StiWebViewer at it and pointed it to and MRT file. However we're getting some odd behaviour.

Firstly, sometimes the report refuses to run, it will throw an "Invalid cast" error or "The state information is invalid for this page and might be corrupted.". When it does run, if I try and switch between pages the AJAX calls go through BUT nothing happens, we get about as far as say page 2/8 then it just sticks on that page.

The report runs fine in the Report Designer as far as I can tell?

Re: Viewer paging issues and more...

Posted: Mon Aug 13, 2012 10:54 am
by HighAley
Hello.

Please, try to set the RenderMode="AjaxWithCache" of the StiWebViewer.

Thank you.

Re: Viewer paging issues and more...

Posted: Tue Aug 14, 2012 8:52 am
by lloydk
Hi,

It's already set to that.

Re: Viewer paging issues and more...

Posted: Wed Aug 15, 2012 6:19 am
by Vladimir
Hello,

Please specify:
1. Does the specified error depend on the browser?
2. Which version of IIS server are you using?
3. Is the caching and data compression enabled on the server side? If so, please try to disable it for testing.

Thank you.

Re: Viewer paging issues and more...

Posted: Wed Aug 15, 2012 8:50 am
by lloydk
1. Any browser, I used Firefox, Chrome and IE.
2. IIS7.5 on Windows 7 & Server 2008R2.
3. Tested with both caching and compression on and off, makes no difference.

Re: Viewer paging issues and more...

Posted: Wed Aug 15, 2012 10:54 am
by HighAley
Hello.

We couldn't reproduce your issue. Please, send us a sample project to reproduce it.

Thank you.

Re: Viewer paging issues and more...

Posted: Wed Aug 15, 2012 1:05 pm
by lloydk
Hi,

I was calling webViewer.ResetCurrentPage() in the Page_Load event of the page which seems to be the cause of this problem. Removing it and the page pages fine.

Re: Viewer paging issues and more...

Posted: Wed Aug 15, 2012 2:05 pm
by HighAley
Hello.
lloydk wrote:I was calling webViewer.ResetCurrentPage() in the Page_Load event of the page which seems to be the cause of this problem. Removing it and the page pages fine.
You don't need this method.
Let us know if you will have any problems else.

Thank you.