
![]() |
![]() |
|
A page specification must be set before printing can begin.
Set the page size and orientation in a TPageSpec
object.
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);