Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / January 2006

Tip: Looking for answers? Try searching our database.

Word print dialog box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin - 31 Jan 2006 11:12 GMT
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...
Sue Mosher [MVP-Outlook] - 31 Jan 2006 13:05 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> 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
[quoted text clipped - 8 lines]
>
> Any ideas (including different possible approaches) gratefully received...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.