J Jerome Brown Member Joined Oct 21, 2004 Messages 8 Programming Experience Beginner Feb 23, 2005 #1 Does anyone know a easy way to print a word document in VB.net?
J John F New member Joined Sep 16, 2005 Messages 1 Programming Experience 10+ Sep 16, 2005 #2 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. Upvote 0 Downvote
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.