Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



How to start the print process

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:

  1. Create and set a TPrintParameters object.

  2. 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);


Notes

[Top]


See also

How to print bands