From: Simon Rogers on
we have been using this peice of code for years for our printer macros within
word and now we need to add something too it for paper type as its defaulting
to normal and it needs to be thick1 or bond

below is the code i am currently using

sub
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterUpperBin
.OtherPagesTray = wdPrinterMiddleBin
End With
ActiveDocument.PrintOut
End Sub

how do i tell it what type of paper is in each tray as our Letter head paper
has now gone up to 120grams and we need to have the printer set to thick1 so
it doesnt jam up so i need to set the macro's correctly otherwise the printer
stops and asks you to manually select the tray.

thanks in advance
Simon
From: Jonathan West on
Hi Simon

You need this article

Controlling the Printer from Word VBA
Part 1: Using VBA to Select the Paper Tray
http://pubs.logicalexpressions.com/pub0009/lpmarticle.asp?id=101


--
Regards
Jonathan West


"Simon Rogers" <SimonRogers(a)discussions.microsoft.com> wrote in message
news:889767D7-027C-4CEC-93DF-912597D68033(a)microsoft.com...
> we have been using this peice of code for years for our printer macros
> within
> word and now we need to add something too it for paper type as its
> defaulting
> to normal and it needs to be thick1 or bond
>
> below is the code i am currently using
>
> sub
> With ActiveDocument.PageSetup
> .FirstPageTray = wdPrinterUpperBin
> .OtherPagesTray = wdPrinterMiddleBin
> End With
> ActiveDocument.PrintOut
> End Sub
>
> how do i tell it what type of paper is in each tray as our Letter head
> paper
> has now gone up to 120grams and we need to have the printer set to thick1
> so
> it doesnt jam up so i need to set the macro's correctly otherwise the
> printer
> stops and asks you to manually select the tray.
>
> thanks in advance
> Simon

 | 
Pages: 1
Prev: Style pane customization
Next: doc changes