Navigation: ABC Library Reference > ReportManager Class > ReportManager Methods >====== AskPreview (preview or print the report) ====== | |
AskPreview, VIRTUAL
The AskPreview method previews or prints the report, only if the Preview property references an operative PrintPreviewClass object.
If the SkipPreview property is true, AskPreview does not preview the report, but prints it instead.
Member of: ReportManager
Implementation:
The TakeCloseEvent method calls the AskPreview method to print or preview the report. The AskPreview method calls the PrintPreviewClass.Display method to preview the report.
Typically, the Init method sets the Preview reference.
Example:
MyReporter.TakeCloseEvent PROCEDURE
CODE
IF EVENT() = EVENT:CloseWindow
SELF.AskPreview()
IF ~SELF.Report&=NULL
CLOSE(SELF.Report)
END
END
RETURN Level:Benign
See Also: Ask, PrintPreviewClass.Display, Init, Preview, SkipPreview