Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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;
like image 392
10K35H 5H4KY4 Avatar asked Jan 19 '16 05:01

10K35H 5H4KY4


People also ask

How do I show all records in Crystal Report?

Answer: Click on Report, Select Expert, Show Formula, Formula Editor. Enter an alternate TRUE condition to display all records for that parameter (see examples below) Click Save & Close.


1 Answers

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.

like image 99
Khazratbek Avatar answered Oct 21 '22 06:10

Khazratbek