How To Print a Range of Pages with the CommonDialog Control (248882)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q248882 SUMMARY
The Print Dialog of the Common Dialog control has three print range options that can be selected:
- A selection of text.
- A range of pages.
- All pages.
Depending upon the option selected, certain flags are set that can be checked programmatically to determine which option has been chosen in the printer dialog box. This article shows how to print a set of pages populated with records from a database. The idea can be extended to other types of text. To do so it is necessary to determine the margins and printable area of the page, as described in the following Microsoft Knowledge Base article:
193943 How To Use GetDeviceCaps to Determine Margins on a Page
REFERENCESFor additional information on determining the margins and printable area of a page, click the article number below
to view the article in the Microsoft Knowledge Base:
193943 How To Use GetDeviceCaps to Determine Margins on a Page
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbCmnDlgPrint kbCtrl kbhowto kbprint KB248882 |
---|
|