Search code examples
asp.netcrystal-reportscrystal-reports-viewer

How to load all pages of crystal reports at once


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;

Solution

  • 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.