PDA

View Full Version : Print Dailog does not set tray.



Tod Brannen
8-Feb-2005, 03:29 PM
Greetings,
I have a need to set the HP laser to print from the lower tray for
letterhead paper. The VDF print dialog does pop up, and allows the setting
of the lower paper tray. However, the invoice always prints to the upper
tray anyway. We want to print once to the upper tray on blank paper and once
to the lower tray for letterhead. If we change the tray using Windows |
Start | Printers | and make the change, it works, but ONLY if we close our
VDF program and then call it back up again. The goal is to be able to do
this without closing the program each time.
Please help if you can.
VDF 9.0 on Windoze 98. Using Word8.pkg to mail merge these invoices.

Thanks,

Tod Brannen

Garret Mott
8-Feb-2005, 03:46 PM
Tod -

You should be able to switch trays by embedding escape sequences in the
document. Check the HP manual & their web site (hp.com) for info on what
they are. They've got about a zillion to do just about anything.

HTH

Garret

"tbrannen" <tbrannen@ate.net> wrote in message
news:$69UfzhDFHA.4924@dacmail.dataaccess.com...
> Greetings,
> I have a need to set the HP laser to print from the lower tray for
> letterhead paper. The VDF print dialog does pop up, and allows the setting
> of the lower paper tray. However, the invoice always prints to the upper
> tray anyway. We want to print once to the upper tray on blank paper and
> once
> to the lower tray for letterhead. If we change the tray using Windows |
> Start | Printers | and make the change, it works, but ONLY if we close our
> VDF program and then call it back up again. The goal is to be able to do
> this without closing the program each time.
> Please help if you can.
> VDF 9.0 on Windoze 98. Using Word8.pkg to mail merge these invoices.
>
> Thanks,
>
> Tod Brannen
>
>

Tod Brannen
8-Feb-2005, 05:15 PM
Garret,
I am not sending anything to the printer. Word is printing the merge
document. Maybe you know a way to tell Word to change trays? I found this in
Word8.pkg but don't know how to use it.
#REPLACE OLE_WdPaperTray Integer
//Enum_List
Define OLEwdPrinterDefaultBin for 0
Define OLEwdPrinterUpperBin for 1
Define OLEwdPrinterOnlyBin for 1
Define OLEwdPrinterLowerBin for 2
Define OLEwdPrinterMiddleBin for 3
Define OLEwdPrinterManualFeed for 4
Define OLEwdPrinterEnvelopeFeed for 5
Define OLEwdPrinterManualEnvelopeFeed for 6
Define OLEwdPrinterAutomaticSheetFeed for 7
Define OLEwdPrinterTractorFeed for 8
Define OLEwdPrinterSmallFormatBin for 9
Define OLEwdPrinterLargeFormatBin for 10
Define OLEwdPrinterLargeCapacityBin for 11
Define OLEwdPrinterPaperCassette for 14
Define OLEwdPrinterFormSource for 15
//End_Enum_List

Maybe - set OLE_WdPaperTray to OLEwdPrintLowerBin???


Tod Brannen

Garret Mott
8-Feb-2005, 05:34 PM
Tod -

Not familiar with the word8.pkg, but your thought is worth a try.

You could also (before printing with Word) try sending a .doc with only the
escape sequence in it. Doing so doesn't print anything, just sets the
printer options.

Garret

"tbrannen" <tbrannen@ate.net> wrote in message
news:B$vGYuiDFHA.1952@dacmail.dataaccess.com...
> Garret,
> I am not sending anything to the printer. Word is printing the merge
> document. Maybe you know a way to tell Word to change trays? I found this
> in
> Word8.pkg but don't know how to use it.
> #REPLACE OLE_WdPaperTray Integer
> //Enum_List
> Define OLEwdPrinterDefaultBin for 0
> Define OLEwdPrinterUpperBin for 1
> Define OLEwdPrinterOnlyBin for 1
> Define OLEwdPrinterLowerBin for 2
> Define OLEwdPrinterMiddleBin for 3
> Define OLEwdPrinterManualFeed for 4
> Define OLEwdPrinterEnvelopeFeed for 5
> Define OLEwdPrinterManualEnvelopeFeed for 6
> Define OLEwdPrinterAutomaticSheetFeed for 7
> Define OLEwdPrinterTractorFeed for 8
> Define OLEwdPrinterSmallFormatBin for 9
> Define OLEwdPrinterLargeFormatBin for 10
> Define OLEwdPrinterLargeCapacityBin for 11
> Define OLEwdPrinterPaperCassette for 14
> Define OLEwdPrinterFormSource for 15
> //End_Enum_List
>
> Maybe - set OLE_WdPaperTray to OLEwdPrintLowerBin???
>
>
> Tod Brannen
>
>
>