General
cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting trays by paper type in visual basic

Mike Tavares
Occasional Visitor

Selecting trays by paper type in visual basic

Can anyone tell me how I can select a paper tray by using the tray's assigned paper type through visual basic? I am creating a document programatically through word and I want to print it to the assigned letterhead tray
3 REPLIES
Dave Kelly_1
Respected Contributor

Re: Selecting trays by paper type in visual basic

Microsoft document Q194789 is the best place to start.

You can then use the PaperSize and PaperBin properties of the Printer object.
Mike Tavares
Occasional Visitor

Re: Selecting trays by paper type in visual basic

I was trying to assign trays based on the paper type using the NT Forms tab in the printer driver. I then wanted to print using Word programmatically through Visual Basic by just giving a paper type and let the driver figure out which tray to use. Is there a way to do that?
Steven Baca_1
Occasional Contributor

Re: Selecting trays by paper type in visual basic

We are having the same problems going from an 8000 to 4050 and wanting it to print to letterhead. The only way I have come up with a way around it is to use a sendkeys command and walk through opening page setup in a macro