We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Viewer.Print call prints only first section ignoring the rest

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

Hi,

The point is Aspose.Words.Viewer is currently at beta stage and normally we do not provide technical support for it as described here:

<A href="</A></P> <P>At the moment we are working on a rendering module with completely different codebase and we hope to have it finished in April.</P>

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We are happy to tell you that the new Rendering Engine has replaced the “old Viewer Beta”. The Rendering Engine can print, save as images or draw onto .NET Graphics object any document page.

Please see Aspose.Words documentation to learn more about new features.

SaveToImage method renders document pages into images:

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.document.savetoimage_overloads.html

In additional, new Rendering engine allows you to convert Word document to PDF directly (without using Aspose.Pdf).

SaveToPdf method converts the whole document or selected pages to PDF.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.document.savetopdf_overloads.html

The latest version of Aspose.Words is available for download from here:

http://www.aspose.com/community/files/51/file-format-components/aspose.words/entry158153.aspx

Best regards,