How to load all pages of crystal reports at once
Asked Answered
G

1

11

I am using CrystalReportViewer in my aspx page.

It is working perfectly, but it load one page at once; when I switch pages within report it does postback to fetch next page data.

enter image description here

Every time when previous/next button is clicked, this loader is displayed.

enter image description here

Is it possible to load all page at initial state, so it won't need to postback and fetch data each time?

These are setting of my Crystalreportsviewer

CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DisplayToolbar = true;
CrystalReportViewer1.HasToggleGroupTreeButton = false;
CrystalReportViewer1.HasToggleParameterPanelButton = false;
CrystalReportViewer1.HasPageNavigationButtons = true;
CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
CrystalReportViewer1.HasGotoPageButton = true;
Gherardo answered 19/1, 2016 at 5:24 Comment(3)
Use of 'Sessions' should solve your problem. Add the reportdocument object into a session and then use it, it will avoid the postbacks.Asci
also refer this link-sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/… it will help youAsci
thanks @SmitaAhinaveGherardo
C
2

Try to use following:

CrystalReportViewer1.DataBind();
CrystalReportViewer1.SeparatePages = false;

It will remove NEXT/PREVIOUS buttons, it will use a scroll, and it should fetch all pages once.

Cacilia answered 19/1, 2016 at 5:28 Comment(2)
Thanks @khazratbek, but I have some reports with 30+ pages; it is not convenient; endusers to scroll that long.Gherardo
@DCODE But that is what they would need to do anyway if they got the report as a PDFEasement

© 2022 - 2024 — McMap. All rights reserved.