HOWTO: How to Do Away with the Print Dialog Box in MFC Printing (140538)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q140538 SUMMARY
By design, a Print dialog box is displayed in MFC printing. This dialog box
allows the user to change the printer settings before a printer device
context (DC) is created. However, there are cases when the print dialog box
is not a good idea. This article provides a way to bypass the Print dialog
box for a print job.
REFERENCES
For more information about the MFC printing, please refer to the
Programming with the Microsoft Foundation Class Library in Books Online.
| Modification Type: | Major | Last Reviewed: | 12/8/2003 |
|---|
| Keywords: | kbCmnDlgPrint kbcode kbhowto kbprint KB140538 |
|---|
|