|
-
Apr 14th, 2004, 09:30 AM
#1
Thread Starter
New Member
Printing a Word Document
Hi,
I am trying to print a Word Document and kill the word instance. The word instance is killed, but the document is never printed. Does anyone have a solution to this problem?
Thanks,
Bob
Code:
Dim objWord As New Word.Application
Dim objDoc As Word.Document
objDoc = objWord.Documents.Add(strFileName)
objWord.Documents(0).PrintOut()
objWord.Quit(Word.WdSaveOptions.wdDoNotSaveChanges)
objDoc = Nothing
objWord = Nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|