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

Free Support Forum - aspose.com

XpsPrintHelper - page size & wrong paper tray


I’m trying to print a document using the XpsPrintHelper Class you suggested in Aspose.Words.Samples. I must print the document with a custom page size. If I open the document in Microsoft Word and print it, it has the correct size and the correct paper tray is used. If I print it with XpsPrintHelper on the same printer, it takes the wrong paper tray (A4). I saved the XPS memory stream to the file system and opened it, and it seems that this file has the correct size.

Can I specify the page size when I print it with XpsPrintHelper?

Thanks in advance.

Thanks for your request. Actually, Aspose.Words does output paper size into XPS document as print ticket. But I suppose XPS print API simply does not use this information. I am not sure whether it supports printing from different trays at all.
Best regards,

The printer used is Canon iRC1021.
The issue was resolved, when using a different driver for the printer.
It did not work with the driver: Canon iRC1021/1022 PCL5c
It did indeed work with the driver: Canon iRC1021/1022 UFRII LT

Thank you for sharing your experience.
Best regards,