Unit 'mseprinter' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tstreamprinter.beginprint

With astream = Nil, the printer runs in dummy (dry run) mode: the whole layout is computed, but no output is produced, which is faster

Declaration

Source position: mseprinter.pas line 261

public procedure tstreamprinter.beginprint(

  command: msestring = '';

  const apreamble: string = ''

); overload;

procedure tstreamprinter.beginprint(

  const astream: ttextstream;

  const apreamble: string = ''

); overload;

Description

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.


Documentation generated on: 2026-10-03