|Navigation: ABC Library Reference > ASCIIViewerClass > AsciiViewerClass Properties >====== Printer (ASCIIPrintClass object) ======|
The Printer property is a reference to the ASCIIPrintClass object for this ASCIIViewerClass object. The ASCIIViewerClass object uses the Printer property to solicit print ranges and specifications from the end user, then print from the file subject to the specifications.
Implementation: The AddItem and Init methods initialize the Printer property.
The Printer property is added to the AsciiViewer by calling the AddItem method. The AsciiViewer does not take ownership of these objects, it just uses them if supplied. It is up to the owner of the objects to destroy them when they are no longer required.
Since these objects are generated by the templates in local procedure scope, they will be destroyed when the enclosing generated procedure dies. If these objects are created by hand coding, then they should be destroyed by whoever creates them.
The exception to this is when the EnablePrint parameter is set on the Init call. In this case the AsciiViewer may create it's own “internal” printer and viewer. In this case, they are destroyed in the Kill method of the AsciiViewer.