Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



How to set the page specification

A page specification must be set before printing can begin.

  1. Set the page size and orientation in a TPageSpec object.

  2. Use CPrinterDevice::SelectPageSpecInTwips() to set the page specification for the current printer device.

TPageSpec spec;
spec.iPortraitPageSize = KA4PaperSizeInTwips;
spec.iOrientation = TPageSpec::EPortrait;
iPrintSetup->PrinterDevice()->SelectPageSpecInTwips(spec);