How to display the selection printer dialog using automation ?

  • Thread starter nicolas.hilaire
  • Start date
N

nicolas.hilaire

Hi all,

i'm using a word document object to print my document

Dim wordDocument As Word.Document
.......
Call wordDocument.printOut(True)

This is working, but it's printing on the default printer.

How can I ask the user to choose the printer ? as it could be made with
word, when we want to print ...
I would like to display the dialog box that allows to chose my printer.

Thanks a lot for your help.

Best regards,

Nicolas H.
 
C

Cindy M.

How can I ask the user to choose the printer ?See the Application.ActivePrinter property. And read
Jonathan Wests articles about using printers with Word
"Controlling the Printer from Word VBA"

pubs.logicalexpressions.com/Pub0009/LPMFrame.asp?CMD=Articl
eSearch&AUTH=20

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
N

nicolas.hilaire

Cindy M. a écrit :
See the Application.ActivePrinter property. And read
Jonathan Wests articles about using printers with Word
"Controlling the Printer from Word VBA"

pubs.logicalexpressions.com/Pub0009/LPMFrame.asp?CMD=Articl
eSearch&AUTH=20

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)


This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)

Thanks for your answer ...
I haven't use this solution, i use the win32 API instead, to show the
dialog box (with printdlg api), then i can get the name of the device
(string) and apply to the activePrinter property as you sugest.

Problem solved :)

Best regards,

Nicolas H.
 

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