on 12-20-2015 5:11 PM
Issue: Cannot navigate past page 2. Seems very common with a lot of people having this problem.
There is at least 10 threads about this here and none of them have the answer.
The standard canned response is 'use Page_Init()'.
The situation is this:
There are several reason for this... I don't know the report name and parameters until the user selects them.
So I repeat. Page_Init is NOT AN OPTION.
I want to make this clear because none of the previous posters made this clear and got a ton of responses to use Page_Init() and they kept posting that they CANNOT use this event - just like me and people refusing to help them because the original poster won't use Page_Init().
It does work if I hardcode the report parameters OR pass the parameters to the page and use Page_Init()
I need it to work in Page_Load().
I have the following pseudocode based on code from here:
SAML Response from SAP Cloud Identity
protected void Page_Load(object sender, EventArgs e)
{
if (Session["ReportDocument"] == null)
{
DataSet ds = new DataSet();
// Get parameters from user , create datasource, etc etc.
ReportDocument rpt = new ReportDocument();
rpt.SetDataSource(ds);
Session["ReportDocument"] = rpt;
CrystalReportViewer.ReportSource = rpt;
}
else
{
ReportDocument rpt = (ReportDocument)Session["ReportDocument"];
CrystalReportViewer.ReportSource = rpt;
}
}
"next page" past page 2 still not working.
Can export to PDF, print, etc all work.
Selecting pages above 3 manually works.
What version of VS and CR are you using? What is the patch level on CR?
Does this issue occur with all reports or specific reports.
Try upgrading to latest patch of CR and see if you could reproduce the issue.
Thanks,
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.