User Tools

Site Tools


askpreview_preview_or_print_the_report_.htm
Navigation:  ABC Library Reference > ReportManager Class > ReportManager Methods >====== AskPreview (preview or print the report) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

AskPreview, VIRTUAL

blk2blue.jpg

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

askpreview_preview_or_print_the_report_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1