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

Free Support Forum - aspose.com

Aspose.Words 6.0.0 document.Print( printername) PrintToFile

Hello support,

How to print a docx on a print file with Apose.Words Doc.Print(printername) ?


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

Thanks for your request. If you would like to print your document to file, you can try using the following code:

System.Drawing.Printing.PrinterSettings settings = new System.Drawing.Printing.PrinterSettings();

settings.PrintToFile = true;

settings.PrintFileName = @"C:\Temp\out.tiff";

settings.PrinterName = "Microsoft Office Document Image Writer";


Best regards.

Many thanks Alexey.