Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Crystal Report paging problem

$
0
0

I am using Crystal Reports 13.0.6.1027 with Visual Studio 2012, report preview is showing many pages like 20/30 pages etc but when I click to "next" it takes me to page 2 only then next button doesn't work.

 

I got suggestion on web to move report document creation and assigning it to view "ReportSource" from Page_Load to Page_Init but my report is dependent to user input which initiates on button click event.

 

However when I moved the following code to Page_Init

 

if (myReport == null)

{

myReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

}

 

crViewer.ReportSource = myReport;

 

it is throwing error on Viewer's error event that invalid report, which make sense that I am not giving it any report at this time which i cannot infact.

 

 

Please help.

 

Khan.


Viewing all articles
Browse latest Browse all 8695

Trending Articles