- Oct 30, 2000
- 42,589
- 5
- 0
For Win32 and VC++, I can find the DeviceCapabilities of a printer.
I can not figure out how to change the orientation from the default potrait to landscape.
The program that I am developing needs to output certain reports in both modes.
I have a CDC for the printer that I get from the PrintDialogBox and/or using a printer selected via an enumeration of printers.
The present sequence begin used is
Get the CDC
configure origin and extents
CDC->StartDoc()
CDC->StartPage()
output to CDC
CDC->EndPage
CDC->EndDoc
Release CDC
I can not figure out how to change the orientation from the default potrait to landscape.
The program that I am developing needs to output certain reports in both modes.
I have a CDC for the printer that I get from the PrintDialogBox and/or using a printer selected via an enumeration of printers.
The present sequence begin used is
Get the CDC
configure origin and extents
CDC->StartDoc()
CDC->StartPage()
output to CDC
CDC->EndPage
CDC->EndDoc
Release CDC