init_initialize_the_printpreviewclass_object_.htm
Navigation: ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== Init (initialize the PrintPreviewClass object) ====== | |
Init( image queue ), VIRTUAL
Init | Initializes the PrintPreviewClass object. |
image queue | The label of the QUEUE containing the filenames of the report image metafiles. See PREVIEW in the Language Reference for more information on report image metafiles. |
The Init method Initializes the PrintPreviewClass object.
Implementation:
The PrintPreviewClass.Init method instantiates a PopupClass object for the PrintPreviewClass object, using the menu text defined in ABREPORT.TRN.
The image queue parameter names a QUEUE with the same structure as the PreviewQueue declared in \ABREPORT.INC as follows:
PreviewQueue QUEUE,TYPE
Filename STRING(128)
END
Example:
PrintPreviewQueue PreviewQueue !declare report image queue
PrtPrev PrintPreviewClass !declare PrtPrev object
CODE
PrtPrev.Init(PrintPreviewQueue) !initialize PrtPrev object
!program code
PrtPrev.Kill !shut down PrtPrev object
init_initialize_the_printpreviewclass_object_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1