Remove last blank page

  1. Right click on select report Group Footer section
  2. Select Section Expert
  3. Select Paging Tab
  4. Check New Page after and click formula button next to it
  5. Type NOT OnLastRecord
Anuncios

Load Crystal Report

C#:

ReportDocument cryRpt = new ReportDocument();

cryRpt.Load(@”C:\…\CrystalReport1.rpt”);

crystalReportViewer1.ReportSource = cryRpt;

crystalReportViewer1.Refresh();

 

ASP.NET:

cryRpt.Load(Server.MapPath(“\\…\\CrystalReport1.rpt”));