Word 2000 VBA access to Default Printer Name

R

RonH@STRS

I'm running a VBA Macro in word 2000 that has to switch between several
network printers where the tray selection varies between the different
models. For instance I need to switch between a HP LaserJet 4350 PCL 6 and a
HP LaserJet 4100 PCL 6 where the tray assignments for FirstPageTray and
OtherPagesTray are different.

I can get the network name of the printer through ActivePrinter, but how can
find out the Printer model name and number to determine the proper tray
settings for the model?

Is there a way in VBA to access the default printer properties? if so, how?

RonH
 
J

Jonathan West

RonH@STRS said:
I'm running a VBA Macro in word 2000 that has to switch between several
network printers where the tray selection varies between the different
models. For instance I need to switch between a HP LaserJet 4350 PCL 6
and a
HP LaserJet 4100 PCL 6 where the tray assignments for FirstPageTray and
OtherPagesTray are different.

I can get the network name of the printer through ActivePrinter, but how
can
find out the Printer model name and number to determine the proper tray
settings for the model?

Is there a way in VBA to access the default printer properties? if so,
how?


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

Controlling the Printer from Word VBA
Part 2: Using VBA to control Duplex, Color Mode and Print Quality
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=116

Controlling the Printer from Word VBA
Part 3: Dealing with Different Paper Sizes
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=132

Controlling the Printer from Word VBA
Part 4: Getting printer driver details
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=183



--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top