With astream = Nil, the printer runs in dummy (dry run) mode: the whole layout is computed, but no output is produced, which is faster
Source position: mseprinter.pas line 261
public procedure tstreamprinter.beginprint( |
command: msestring = ''; |
const apreamble: string = '' |
); overload; |
const astream: ttextstream; |
const apreamble: string = '' |
); overload; |
With astream = Nil, the printer runs in dummy (dry run) mode: the whole layout is computed, but no output is produced, which is faster. Use it for a first pass which counts the pages, e.g. to print "Page N of M": count the pages in onpagestart, then call beginprint again with a real stream and print the same content.