Printer Trays Hell, View Pro and Vb 6

Hi Everyone,

I am a Windows Applications developer.

Have you come across hell when trying to specify printer’s Paper Source Trays from Vb6 application? I have actually been to hell!

VB 6
exposes a Printer object, which points to the currently active printer for the current user profile in Windows. You can manipulate this object directly and set the printer trays with easy. However, if you use a third party tool called ViewPro you may experience problems.

ViewPro hides the printer object and at times it passes the wrong values for the printer trays.

ViewPro exposes a property called ‘DefaultSource’ which is an Enum, whilst the printer tray Ids may not lie in the Enum definations

Print jobs may not always print to the correct trays. You have to find ways of circumventing the ViewPro and print directly to the printer.

One thought on “Printer Trays Hell, View Pro and Vb 6

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.