Word print dialog box

G

Guest

This is probably being optimistic but is there a way to display the Word
print dialog box using VB Script from an Outlook form? The reason I ask is
that I'm using the Word template solution to print my Outlook forms but want
to be able to set my printer tray (rather than just print straight to the
default tray).

In VBA one can use objWord.Dialogs(wdDialogFilePrint).Show if you've set up
the right reference but, as far as I can see, one has to use the old
CreateObject method in VB Script in which case my objWord doesn't contain the
Dialogs collection.

Any ideas (including different possible approaches) gratefully received...
 
S

Sue Mosher [MVP-Outlook]

If you're using the Word template method to print the form, then you already have a complete Word.Application object and should be able to access its dialogs, just as you would in Word VBA. Just remember that in VBScript, you have to declare any non-VB constants (wdDialogFilePrint) or use their literal values.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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