How to print a docx on a print file with Aspose.Words Doc.Print(printername) ?
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"; doc.Print(settings);
Many thanks Alexey.