>needing to print a word document without opening word application or showing it in a form or previewing: just sending to the printer. Is it possible?
>Thanx in advance
Yes and no.
Yes:
declare long ShellExecute in "shell32.dll" ;
long hwnd, string lpszOp, ;
string lpszFile, string lpszParams, ;
string lpszDir, long nShowCmd
lcDocument = "c:\myPath\blah blah.doc"
ShellExecute(0,'Print',m.lcDocument,0,0,1)
No:
OS shows up word anyway.
Alternatively if you didn't mean "not using automation" by saying "without opening word application" then you could do it w/o a word showing.
oWord = create('word.application')
...
.PrintOut
* quit when it finsihes.
Cetin