How to print a word doc in VB.net

John F

New member
Joined
Sep 16, 2005
Messages
1
Programming Experience
10+
The following code works for me;

objWord = New Word.Application

objWord = CreateObject("Word.Application")

objWord.Documents.Open(strDoc, ,
True)

objWord.PrintOut()

objWord.Quit()

objWord =
Nothing

The "strDoc" is the string containing the document path and name.
 
Top Bottom