SAP Knowledge Base Article - Public

1398499 - Blank pages printed for Crystal Report from browser File Print menu when SeparatePages is false

Symptom

  • Print Crystal Report. 
  • SeparatePages false. 
  • Print from browser File > Print... menu.
  • Crystal Reports .NET web form viewer.
  • Blank pages printed instead of report data.

Reproducing the Issue

  1. Set the CrystalReportViewer.SeparatePages to false. All pages merged into one long report. 
  2. Preview the Crystal Report in the .NET web form viewer control.
  3. From the browser, Internet Explorer or Firefox, go to File > Print...
  4. Print the report.
  5. The pages will be blank except for the header and footer indicating the URL of the page.

Environment

  • Windows OS
  • Crystal Reports 2008 SP2
  • Browser
    • Internet Explorer 7
    • Firefox 3
    • Safari 3.2

Cause

  • A JavaScript method is used to render the entire report in the browser.
  • This new method of rendering the report prevents printing from the browser file menu.

Resolution

Don't print from the File > Print menu. Use one of the methods below to print the Crystal Report.

  1. Use the printer icon in the .NET web form viewer control to print using the ActiveX Print Control, or export the report to PDF for printing.
  2. Use the ReportDocument.PrintToPrinter() method.
  3. Check the Crystal Reports .NET SDK Developer Guide for more information on printing.

SDK Developer Library

 printreport.png

Keywords

CRYSTAL REPORTS 2008 PRINT PRINTER PREVIEW BLANK EMPTY DOTNET .NET CRNET 12 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

Crystal Reports 2008 V1