My Oracle Support Banner

E-CR: Suppress Printing when no records in Crystal Report 2008 SP3 (Doc ID 2370711.1)

Last updated on APRIL 27, 2018

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.53 and later
Information in this document applies to any platform.

Goal

Avoid an error message below when selecting Suppress Printing If no Records option in Crystal Report 2008 SP3

Crystal Runtime exception: System.DivideByZeroException: Attempted to divide by zero.

In Crystal Report 2008 or 2011, the user can generates reports with the option, Suppress Print If no Records but the error occurs when output is printer.

Crystal Runtime exception: System.DivideByZeroException: Attempted to divide by zero.
   at CrystalDecisions.Shared.PrintingHelper.PrintPage(PrintPageEventArgs e, PageObject page, PrintLayoutSettings layoutSettings, Int32& currentPageNumber, Int32& currentHorizontalPageNumber)
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintPageEventHandler(Object sender, PrintPageEventArgs e)
   at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
   at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
   at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
   at CCRReportDocument.PrintReport(CCRReportDocument* , Char* szPrinterName)

In Crystal Reports 9, no printing takes place.
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.