Question Microsoft Word Print Issue

ggunter

Well-known member
Joined
Apr 23, 2008
Messages
137
Programming Experience
Beginner
First, the code:
VB.NET:
Public Function PrintDocument(Optional ByVal displayMessage As Boolean = True) As PrintReturns

        'print
        Try
            wrdApp.ActiveDocument.PrintOut(, , , , , , WdPrintOutItem.wdPrintDocumentContent, , , , , , , , , , , )
            PrintDocument = PrintReturns.Ok
        Catch ex As Exception
            If displayMessage Then
                MessageBox.Show(ex.Message)
            End If
            PrintDocument = PrintReturns.prntError
        End Try

    End Function

Issue: I'm not getting any errors but nothing is printing either.:confused: I've tried stepping through the code but still no errors and no document.

Any help would be greatly appreciated.
 
Back
Top