Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005-2015 : Report Design
Message Icon Topic: Next page button not always working Post Reply Post New Topic
<< Prev Page  of 4
Author Message

Joined: 01 Sep 2009
Location: Azerbaijan
Online Status: Offline
Posts: 1
Quote Ziya Replybullet Posted: 01 Sep 2009 at 11:20pm
I did what you wrote. But still not working (display Session not found). Here is my code. Please correct my code if I wrong. Thanks in advance.
private void Page_Init(object sender, System.EventArgs e)
string str = (Request.QueryString["ds"]!=null) ? Request.QueryString.Get("ds").ToString():"";
if (Session[str] == null)                    
Response.Write("Session not found.");
DataSet ds = (DataSet)Session[str];
rd.FileName = Server.MapPath(ReportFileName);
crv.ReportSource = rd;

IP IP Logged

Joined: 21 Jan 2011
Online Status: Offline
Posts: 1
Quote xyron Replybullet Posted: 21 Jan 2011 at 2:13am
Hi BrianBischof,
I don't know if you have found the explanation, the solution in my case was to not put any code in page_load and use the page_init event instead.

  As the page_init event occurs once  the code should be implemented there.

If the page_load, all the code to generate the report is reinitialized each time the CrystalReportViewer controls are solicited.

I hope that helps. Smile
I just realized that the few last  posts of that discussion were concluding the same way as i do. Embarrassed


Edited by xyron - 21 Jan 2011 at 2:18am
IP IP Logged
<< Prev Page  of 4
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

This page was generated in 0.016 seconds.