Manipulating Printer Setting Programmatically

G

G

Have an application that needs to manipulate the printing preferences.
Where is a good place to start learning about what methods are used to
accomplish this with VB and/or VBA?
Are the different manufacturer printer drivers a large part of this?
In my case I am trying to control some Lanier Printers.

Thanks for any help.
 
J

Jonathan West

G said:
Have an application that needs to manipulate the printing preferences.
Where is a good place to start learning about what methods are used to
accomplish this with VB and/or VBA?
Are the different manufacturer printer drivers a large part of this?
In my case I am trying to control some Lanier Printers.

Take a look here

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
 
G

G

JW,
Thanks for the info. Just what I needed.
Also was looking for some info on changing the default printer
programmatically.

My basic routing is:
Select document
CHeck properties
Set Printer
Manipulate driver settings
Print

Garret
 
J

Jonathan West

G said:
JW,
Thanks for the info. Just what I needed.
Also was looking for some info on changing the default printer
programmatically.

My basic routing is:
Select document
CHeck properties
Set Printer
Manipulate driver settings
Print

Change the ActivePrinter property in Word.

You can also get a list of the available printers by the means described in
this article

Getting names of available printers
http://www.word.mvps.org/FAQs/MacrosVBA/AvailablePrinters.htm
 

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