INFO: Changing Print Settings Mid-Job

ID: Q85679

3.10 4.00 | 3.50 3.51 WINDOWS | WINDOWS NT kbprint
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) 3.1
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT, versions 3.5, 3.51, 4.0
    • Microsoft Windows 95


SUMMARY

In Windows 3.1 and later, print settings can be changed on a page-by-page basis through the ResetDC() API.


MORE INFORMATION

An application can pass a new DEVMODE structure (containing new print settings) to ResetDC() between pages to change the print settings. For example, this function makes it possible to change the paper bin or paper orientation for each page in a print job. Note that ResetDC() cannot be used to change the driver name, device name, or the output port.

Before calling ResetDC(), the application must ensure that all objects (other than stock objects) that were previously selected into the printer device context are selected out.

Additional query words: 3.10 4.00 dmOrientation dmDefaultSource dmPaperSize hDC WM_DEVMODECHANGE ExtDeviceMode

Keywords : kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS95 kbDSupport kbSDKWin16
Version : WINDOWS:3.1,95; winnt:3.5,3.51,4.0
Platform : WINDOWS winnt
Issue type : kbinfo


Last Reviewed: July 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.