Navigation: ABC Library Reference > ReportManager Class > ReportManager Methods >====== Init (initialize the ReportManager object) ====== | |
Init( process object [, report ] [, preview object ] )
Init | Initializes the ReportManager object. |
process object | The label of the ProcessClass object the ReportManager uses to batch process the report VIEW and provide appropriate visual feedback to the end user on the progress of the report. |
report | The label of the managed REPORT structure. If omitted, the ReportManager becomes a batch VIEW processor with automatic resource management. |
Preview object | The label of the PrintPreviewClass object the ReportManager uses to preview or print the report. If omitted, the ReportManager prints the report without generating preview image files. |
The Init method does the report-specific initialization of the ReportManager object. This Init method is in addition to the Init method inherited from the WindowManager class which does general window procedure initialization.
Member of: ReportManager
Implementation:
Typically, the Init method calls the Init(process, report, preview) method to do report-specific intialization. The Init method sets the Preview, Process, Report, and TimeSlice properties.
Example:
PrintPhones PROCEDURE
report REPORT,AT(1000,1540,6000,7460),PRE(RPT)
detail DETAIL,AT(,,6000,280)
STRING(@s20),AT(50,50,5900,170),USE(PHO:Number)
END
END
Previewer PrintPreviewClass !declare Previewer object
Process ProcessClass !declare Process object
ThisWindow CLASS(ReportManager) !declare derived ThisWindow object
Init PROCEDURE(),BYTE,PROC,VIRTUAL
Kill PROCEDURE(),BYTE,PROC,VIRTUAL
END
!procedure data
CODE
ThisWindow.Run !run the procedure (init,ask,kill)
ThisWindow.Init PROCEDURE()
CODE
!procedure code
ThisWindow.Init(Process,report,Previewer) !call the report-specific Init
!procedure code
See Also: WindowManager.Init