Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Data Type Print Method ??H?E?L?P??M?E??!!

Status
Not open for further replies.

oconv

Programmer
Jan 17, 2002
25
ZA
Dim MsWordDoc as Object
Set MsWordDoc = GetObject("C:\Test.doc")
MsWordDoc.SaveAs "C:\Test2.doc' ' this works but. . . .
MsWordDoc.FilePrint 'does not work


What the HELL are you supposed to use and even better does any documentation even exist for something like this?????

PLEASE HELP , I AM GOING TO END MYSELF SOON !!!!!!!



 
I haven't quite done it your way before, but here's what I've used.

Dim WA As Word.Application
Dim WD As Word.Document

Set WA = New Word.Application
Set WD = WA.Documents.Open("c:\test.doc")
WD.PrintOut
WA.Quit
Set WD = Nothing
Set WA = Nothing

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top