query printer

E

evan

Hi All,

Does anyone have the VB code to query a printer (The print device is shared through a Windows 2000 Print server)? I have word templates that needs to query network printers to get it's name, tray info, paper info etc so that the template knows where to print it to.

If anyone can provide me with the code or point me in the right direction it would be greatly appreciated.

Thanks
Evan
 
J

Jonathan West

evan said:
Hi All,

Does anyone have the VB code to query a printer (The print device is
shared through a Windows 2000 Print server)? I have word templates that
needs to query network printers to get it's name, tray info, paper info etc
so that the template knows where to print it to.
If anyone can provide me with the code or point me in the right direction
it would be greatly appreciated.
Thanks
Evan

Hi Evan,

This set of articles might be useful to you

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

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

Part 3: Dealing with Different Paper Sizes
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=132

Part 4: Getting printer driver details
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=183
 

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