toolbar button for printing

B

bigmog

Can anyone point me in the right direction. I want to write an
application that implments a toolbar button in Word. Clicking the
button should print the current document. I want to control which
printer tray different pages of the document are printed to.

I'm quite a proficient programmer and can handle COM, ActiveX, C++, C#
etc. etc. It seems tray selection is a bit tricky and can be set not
only in world but also in the printer driver.

If anyone can help me with this task or even wants to help write the
application couild you please post to this thread.

Many thanks in advance
 
J

Jonathan West

bigmog said:
Can anyone point me in the right direction. I want to write an
application that implments a toolbar button in Word. Clicking the
button should print the current document. I want to control which
printer tray different pages of the document are printed to.

I'm quite a proficient programmer and can handle COM, ActiveX, C++, C#
etc. etc. It seems tray selection is a bit tricky and can be set not
only in world but also in the printer driver.

If anyone can help me with this task or even wants to help write the
application couild you please post to this thread.

Many thanks in advance

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


--
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
 
J

Jay Freedman

Have a look at this series of articles:

Controlling the Printer from Word VBA by Jonathan West
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

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
B

bigmog

Hi All that's great. Actually after posting I found these excellent
articles. Someone has told me that bin settings in the driver can
override the settings in word but I suspect this is not the case.
Probably it was because as mentioned in the articles the were not
passing the correct codes down to the driver.
 

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