How to print an open Word Document on named printer, VB.Net

I have a project that creates a word document, the document is not saved or closed. I require to print it to a named printer before closing it (no save).
TeDeSmAsked:
Who is Participating?
 
GrahamSkanRetiredCommented:

        Dim wdApp As New Microsoft.Office.Interop.Word.Application
        Dim wdDoc As Microsoft.Office.Interop.Word.Document
       '...
            wdApp.ActivePrinter = "My Printer"
            wdDoc.PrintOut()

Open in new window

0
 
TeDeSmAuthor Commented:
That was easy, thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.