How to Print a VB Picture Control Using Windows API Functions (77060)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q77060 SUMMARY
This article explains how to print a Visual Basic picture control to a
printer using several Windows API function calls.
NOTE: this example will not work correctly on PostScript printers. Instead
of the picture control printing, two blank sheets are ejected from the
printer when using a printer configured to use the PostScript printer
driver. For the example to work correctly, the printer must use a standard
non-PostScript laser printer configuration (such as PCL/HP.)
For additional information on printing to PostScript printers, please see
the following article in the Microsoft Knowledge Base:
85978
: Print Form or Client Area to Size on PostScript or PCL Printer
REFERENCES
"Programming Windows: The Microsoft Guide to Writing Applications
for Windows 3," Charles Petzold, Microsoft Press, 1990
"Microsoft Windows Software Development Kit: Reference Volume 1,"
version 3.0
"Microsoft Windows Software Development Kit: Guide to Programming,"
version 3.0.
WINSDK.HLP file shipped with Microsoft Windows 3.0 Software
Development Kit
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB77060 kbAudDeveloper |
---|
|