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

Free Support Forum - aspose.com

Problem with Print Aspose.Word.Document using DocumentRenderer

I have been trying to print out a word doc to a printer and keep recieving this error:
Number was less than the array’s lower bound in the first dimension.
Parameter name: srcIndex
I am calling the print code as the following:

Aspose.Words.Document doc = new Aspose.Words.Document(inputFile);
Aspose.Words.Viewer.DocumentRenderer rend = new Aspose.Words.Viewer.DocumentRenderer(doc);
rend.PrinterSettings.PrinterName = @"\\ort-rosev\ORTICON2";

Any ideas? I also tried printing the document without specifying the PrinterName and had the same problem.

Please attach the problem document. I will check what could be done.

ok, here is the Word Document I was trying to print out.

We’ll try to fix this in the forthcoming release but no promises because the viewer is still at beta stage. Thank you for understanding.

Ok, sounds good. Thanks

I’m using Version 3.5.1 and encountering still the same problem with exactly the same code:

// Create a new Render instance
new DocumentRenderer(strFilePath);

Any help or improvement in sight? When will you bring the Viewer out of the Beta Version, any rough idea?

I am using DocumentRenderer to print a word document, The word document already contains some tables(Manuly added), The border type for the tables are “none”, Means it should not get print while printing, I have just used this table for layouting my document. but Aspose is printing the table too, How make this invisble. Please replay fast.
Thanks in advance
Manikandan Balakrishnan (LogicaCMG)

Sorry, but the renderer is currently beta and we are working on another version with completely different codebase. Therefore we do not fix the beta. Please wait until the final version is released.

What is the current schedule for the release of the final version???

The release is planned on April 2007.

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.

Saving to image

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

Saving to Pdf

The latest version of Aspose.Words is available for download from downloads section or from NuGet