The information stored in CPrintSetup
is associated with
a document and may even be stored as part of the persistent form of the
document. A TPrintParameters
object, on the other hand, contains
information associated with a particular print request, and is transient, so is
set separately.
To start a print request:
Create and set a TPrintParameters
object.
Some device families may supply a
CEikPrintProgressDialog
class that allows users to start print
jobs and informs them of their progress. It also provides the option of
cancelling the operation. Alternatively, use
CPrintSetup::StartPrintL()
.
TPrintParameters params;
// pages 1 to 3
params.iFirstPage = 1;
params.iLastPage = 3;
// one copy
params.iNumCopies = 1;
// Start print
setup->StartPrintL(params, iBodyPrinter, NULL, NULL);