User Tools

Site Tools


printlines_print_or_preview_specified_lines_.htm
Navigation:  ABC Library Reference > ASCIIPrintClass > AsciiPrintClass Methods >====== PrintLines (print or preview specified lines) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

PrintLines( first, last ), VIRTUAL

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

printlines_print_or_preview_specified_lines_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1