| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ReportManager Class > ReportManager Methods >====== Init (initialize the ReportManager object) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[getusemrp get usemrp value rm.htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[kill shut down the reportmanager object .htm|{{btn_next_n.gif|Next page}}]] | | || **Init( **//process object //[, //report //] [, //preview object //]// //**)** {{blk2blue.jpg|blk2blue.jpg}} | **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 methods.htm|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:**     [[init initialize the windowmanager object .htm|WindowManager.Init]]