First, the code:
Issue: I'm not getting any errors but nothing is printing either. I've tried stepping through the code but still no errors and no document.
Any help would be greatly appreciated.
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. I've tried stepping through the code but still no errors and no document.
Any help would be greatly appreciated.