|
-
Aug 29th, 2003, 01:15 PM
#1
Thread Starter
New Member
Printer question
I am attempting to write an application that pulls addresses from a dB and prints them on address labels. I am new to the intricacies of the Printer object. The printer I am trying to access is an IBM Infoprint 32 with 2 input trays. Whatever I try, the output always prints on the plain paper in Tray 1, not the label stock in Tray 2. I have tried "Printer.PaperBin = vbPRBNLower", and "Printer.PaperBin = 2" and a variety of other digits. I have tried calling up the Print Common Dialog, but I can't figure out how to get any of the settings from that dialog into effect. I would be immensely grateful for any new ideas here.
-
Aug 29th, 2003, 02:38 PM
#2
Frenzied Member
Have you tried putting you label stock in tray 1?
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Aug 29th, 2003, 02:50 PM
#3
Thread Starter
New Member
I considered that, but I have too many other applications already set up to use the printer as is, and I share this printer with others who would not appreciate changes.
-
Aug 29th, 2003, 02:57 PM
#4
Frenzied Member
Did you try all of the paperbin values? How about paper size property? (Some times if it is not 8/1 X 11 is will automaticly go to the other tray)
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Aug 29th, 2003, 02:59 PM
#5
Frenzied Member
Alos, you might want to read the printer driver spec..
From MSDN:
Note The effect of the properties of the Printer object depends on the driver supplied by the printer manufacturer. Some property settings may have no effect, or several different property settings may all have the same effect. Settings outside the accepted range may or may not produce an error. For more information, see the manufacturer's documentation for the specific driver.
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
-
Aug 29th, 2003, 03:34 PM
#6
Thread Starter
New Member
IBM's documentation for the InfoPrint32 was extensive, but did not address this issue.
Also, setting the papersize value to anything other than the default letter size results in an error.
-
Aug 29th, 2003, 04:37 PM
#7
Thread Starter
New Member
After 2 weeks of research, I posted my question here. Fifteen minutes later, I found the answer. Courtesy of Microsoft, believe it or not. For anyone interested in the solution, MS Knowledge base article #194789 gives a bit of code that asks the printer for the name and number of all paper trays. Using this code I was able to determine that the designation for the lower tray on an IBM InfoPrint32 is 259. Many thanks to those who replied.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|