Microsoft KB Archive/85679

{|
 * width="100%"|

INFO: Changing Print Settings Mid-Job

 * }

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)

-

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 : kbOSWinNT350 kbOSWinNT351 kbOSWinNT400 kbOSWin95 _IK kbSDKWin16

Issue type : kbinfo

Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWin32API kbWinSDKSearch kbWinSDK310