How to print a word doc in VB.net

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.
 
Back
Top