XpsPrintHelper - page size & wrong paper tray

Last post 12-07-2011, 9:08 AM by AndreyN. 3 replies.
Sort Posts: Previous Next
  •  12-01-2011, 5:25 AM 346050

    XpsPrintHelper - page size & wrong paper tray .NET

    Hello,

    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.


     
  •  12-01-2011, 11:50 AM 346178 in reply to 346050

    Re: XpsPrintHelper - page size & wrong paper tray

    Hi

     

    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,


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  12-07-2011, 9:01 AM 347512 in reply to 346050

    Re: XpsPrintHelper - page size & wrong paper tray

    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

     
  •  12-07-2011, 9:08 AM 347515 in reply to 347512

    Re: XpsPrintHelper - page size & wrong paper tray

    Hi

     

    Thank you for sharing your experience.

     

    Best regards,


    Andrey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML