Navigation: ABC Library Reference > ReportManager Class > ReportManager Methods >====== PrintReport (print the report) ====== | |
PrintReport, VIRTUAL
The PrintReport method is used to determine where a report output will be redirected. Based on the ReportTarget value, the report will be processed via the WMFparser, or as a standard report is handled by the ProcessResultFiles method.
Member of: ReportManager
Implementation:
The PrintReport method is called by the ReportManager's AskPreview method.
Example:
ReportManager.AskPreview PROCEDURE
CODE
IF NOT SELF.Report &= NULL AND SELF.Response = RequestCompleted
IF SELF.EndReport()=Level:Benign
IF NOT SELF.Preview &= NULL
IF CHOOSE (NOT SELF.SkipPreview, SELF.Preview.Display(SELF.Zoom), TRUE)
SELF.PrintReport() !Print after previewing
ELSE
SELF.CancelPrintReport()
END
FREE(SELF.Preview.ImageQueue)
ELSE
SELF.PrintReport() !Print without previewing
FREE(SELF.PreviewQueue)
END
ELSIF NOT SELF.Preview &= NULL
FREE(SELF.Preview.ImageQueue)
ELSE
FREE(SELF.PreviewQueue)
END
END