Kbase P172352: How to determine if a Crystal Reports report has been fully spooled to the printer?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/26/2010 |
|
Status: Verified
GOAL:
How to determine if a Crystal Reports report has been fully spooled to the printer?
GOAL:
How to determine if a Crystal Reports report is finished printing?
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
FIX:
The following code shows how to tell if Crystal Reports has finished spooling a report to the Windows print spooler:
/* Assume that chReport is the COM-HANDLE for your report */
DEFINE VARIABLE chPrintingStatus AS COM-HANDLE NO-UNDO.
/* Code Goes Here To Tell Crystal To Print The Report, Typically Using :PrintOut() Method */
chPrintingStatus = chReport:PrintingStatus.
DO WHILE chPrintingStatus:Progress <> 3: /* 3 = Report Printing is Complete */
PROCESS EVENTS.
END.
RELEASE OBJECT chPrintingStatus.