The information in this article applies to:
SYMPTOMSIf you use the ScaleX and ScaleY methods of the Printer Object in Visual Basic version 4.0 (16-bit) you produce an unwanted printed page when running on Windows 95, Windows 98 or Windows NT version 4.0. CAUSEThe Internal Printer Object code initializes the Printer Object in such a way that a new page is sent to the Printer. RESOLUTIONScaleX and ScaleY values can be retrieved through a call to GetDeviceCaps using HORZSIZE and VERTSIZE. The values returned should be converted to the units desired. This will give you the size of the printable area for the Printer's printed page.
MORE INFORMATION
Starting with Microsoft Visual Basic version 6.0, this behavior is no longer present. Steps to Reproduce Behavior
REFERENCESFor additional information about using GetDeviceCaps in the 32-bit version of Visual Basic, please see the following article in the Microsoft Knowledge Base: Q193943 HOWTO: Use GetDeviceCaps to Determine Margins on a Page Additional query words: Printer Object ScaleX ScaleY
Keywords : kbPrinting kbVBp400 |
Last Reviewed: June 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |