Hi,
I generate a document using Aspose.Words and save it to a folder in local machine. The document contains more than one sections. I open this document using Aspose.Words.Viewer to print to a printer. It always prints only the first section. Do I need to print each sections individually or am I missing something? Following is the vb code I use to print. The Aspose.Words.dll version I use is 3.6.1.0
Public Function PrintDoc(ByVal documentName As String, ByVal PrinterName As String) As Boolean
Dim returnVal As Boolean = False
Try
Dim oViewer As New Aspose.Words.Viewer.DocumentRenderer
Try
oViewer.PrinterSettings.PrinterName = PrinterName
oViewer.Document = New Aspose.Words.Document(documentName)
oViewer.Print()
returnVal = True
Catch ex As Exception
.....
Finally
oViewer.Document = Nothing
oViewer = Nothing
End Try
Catch ex As Exception
....
End Try
Return returnVal
End Function
Many Thanks