EASYLABEL Box and Disk
Tharo Logo
Tech. Support: +1 330 273 4408
Search:     Advanced search
Browse by category:



Setting print height with a Visual Basic Application using Windows Drivers under NT/2000

Trying to set the print height in a VB application using NT/2000 and apollo2000-2.2 drivers. No matter what size is set in the VB application, the default size is printed! The problem occurs ONLY UNDER WinNT and Win2000!!! Running the application under Win98 works!

The reason it works in Windows 98 but not in Windows NT is because: Microsoft Windows 95, Windows 98, and Windows Millennium Edition (Me) are flexible on custom, user-defined page sizes. However, on systems that are running Windows NT and Windows 2000, you must define all page sizes as a form before you can use them. This is a Windows characteristic.

Use DEVMODE to define and select custom page sizes. The Windows Printer Drivers Support section of our website has instructions on how to do this using C++ but there is no VB solution for NT/2000. The article "HOWTO: Print Using Custom Page Sizes on Windows NT and Windows 2000" at http://support.microsoft.com/kb/q282474/ explains how to add, select(for printing), and delete custom page sizes on Windows NT and Windows 2000. There is also a Visual Basic code sample that demonstrates how to add, select, and delete custom forms.
Others in this Category
» More articles



RSS