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";

rend.Print();

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

Thanks

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

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

Thanks Smile [:)]

Hi,

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);
renderer.Print();

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

Thanks
tinu

Hi,

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)

Hi,

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.

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,