SAMPLE: Changing the Page Orientation to Landscape Without Interacting with the Print Dialog Box in an MFC-Based ApplicationID: Q214617
|
Default printing in MFC supports changing the page orientation (Portrait or Landscape) by interacting with the common Print dialog box. Sometimes, it may be necessary to change the page orientation at run time without interacting with the Print dialog box; for example, when changing the orientation to Landscape for printing a large report.
Mfcdvmd.exe is a sample that shows how the page orientation can be changed without interacting with the common Print dialog box. This is a self extracting .exe file.
The following file is available for download from the Microsoft
Software Library:
Mfcdvmd.exe
FileName | Size |
---|---|
Mfcdvmd.exe | 44 K |
Q119591 How to Obtain Microsoft Support Files from Online Services
For additional information, please see the following article in the Microsoft Knowledge Base:
Q132239 TITLE : SAMPLE: Calling ExtDeviceMode/DeviceCapabilities in Win32s App
Q167345 HOWTO: Modify Printer Settings with DocumentProperties()
Additional query words: DEVMODE OnPrepareDC PrinterInfo orientation
Keywords : kbfile kbsample kbCmnDlgPrint kbMFC kbPrinting kbVC500 kbVC600
Version : winnt:5.0,6.0
Platform : winnt
Issue type :
Last Reviewed: April 2, 1999