| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ASCIIPrintClass > AsciiPrintClass Methods >====== PrintLines (print or preview specified lines) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[init initialize the asciiprintclass object .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[asciisearchclass.htm|{{btn_next_n.gif|Next page}}]] | | || **PrintLines( **//first, last //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **PrintLines** | Prints or previews the specified lines. | | //first// | An integer constant, variable, EQUATE, or expression containing the number of the first line of the range of lines to print. | | //last// | An integer constant, variable, EQUATE, or expression containing the number of the last line of the range of lines to print. | If the PrintPreview property is True, the **PrintLines **method previews the specified lines, then prints the lines or not, depending on the end user's response to the preview. If the PrintPreview property is False, the **PrintLines **method prints the specified lines to the selected printer. **Example:** ** IF EVENT() = EVENT:Accepted** **  IF ACCEPTED() = ?PrintButton** **   FirstLine=1** **   LastLine=HighestLine** **   SELF.PrintLines(FirstLine,LastLine)** **   POST(EVENT:CloseWindow)** **  END** ** END** **See Also:     **[[printpreview print preview switch .htm|PrintPreview]]