| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIPrintClass > AsciiPrintClass Methods >====== Init (initialize the ASCIIPrintClass object) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[ask solicit print specifications .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[printlines print or preview specified lines .htm|{{btn_next_n.gif|Next page}}]] | | || **Init( **//ASCIIFileMgr //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **Init** | Initializes the ASCIIPrintClass object. | | //ASCIIFileMgr// | The label of the ASCIIFileClass object that manages the file to print. The ASCIIPrintClass object uses the //ASCIIFileMgr //to read from the file and handle line numbers and error conditions. | The **Init **method initializes the ASCIIPrintClass object. **Example:** **MyViewerClass.Init FUNCTION(FILE AsciiFile,*STRING FileLine,*STRING Filename,|** **              UNSIGNED ListBox,ErrorClass ErrHandler,BYTE Enables)** ** CODE** ** !program code** ** IF BAND(Enables,EnableSearch)          !if Search flag is on** **  SELF.Searcher &= NEW AsciiSearchClass !instantiate Searcher object** **  SELF.Searcher.Init(SELF)              !initialize Searcher object** ** END** ** IF BAND(Enables,EnablePrint)           !if Print flag is on** **  SELF.Printer &= NEW AsciiPrintClass   !instantiate Printer object** **  SELF.Printer.Init(SELF)               !initialize Printer object** ** END**