dbTalk Databases Forums  

printing an MS Word document from a phantom.

comp.databases.pick comp.databases.pick


Discuss printing an MS Word document from a phantom. in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
steven
 
Posts: n/a

Default printing an MS Word document from a phantom. - 10-11-2005 , 08:50 AM






I would like to know if someone can provide me with the script which
would allow me to call MS word with a specific file and then
automatically print the file to the default print and exit Word. I am
using D3 ver 7.4.5 NT.
Steven Andler


Reply With Quote
  #2  
Old   
cc
 
Posts: n/a

Default Re: printing an MS Word document from a phantom. - 10-11-2005 , 12:01 PM






I use this script:

Set objWord = CreateObject("Word.Application")
objWord.Application.Documents.Open "c:\yourfile.doc"
objWord.Application.PrintOut
Set objWord = Nothing


Best regards,

Cristian


Reply With Quote
  #3  
Old   
GVP
 
Posts: n/a

Default Re: printing an MS Word document from a phantom. - 10-12-2005 , 02:35 AM



In this case set Visible parameter in
objWord.Application.Documents.Open "c:\yourfile.doc",,,,,,,,,,,Visible

Best regards, Grigory
P.S.
ShellExecuteEx uses shell definitions for registered filetypes


Reply With Quote
  #4  
Old   
steven
 
Posts: n/a

Default Re: printing an MS Word document from a phantom. - 10-14-2005 , 08:41 AM



Thank you Cristian. This works great!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.