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

Free Support Forum - aspose.com

Aspose.Words: how to use/access PrintTicket while printing to XPS printer?

Hi support,

Here https://docs.aspose.com/words/net/file-formats-and-conversions/ is said that:

“Based on the information specified in the original document, such as paper size, orientation and paper tray (which, by the way, can be different for different sections), Aspose.Words creates and embeds XPS Print Tickets that conform to the Print Schema specification. The print tickets will help the document print correctly, as the user intended.”

My question is: is it possible to access that XPS Print Ticket in order to add information into it concerning “Private (secure) print” / “PIN print” decribed here https://msdn.microsoft.com/en-us/windows/hardware/drivers/print/sample-printticket-file-for-pin-printing ?

Is there a way to use PrintTicket class for “PIN protected printing” using Aspose Document Print() method or/ and XpsPrintHelper class?

Thank you in advance,

Vadim

Hi Vadim,

Thanks for your inquiry.

Please use the attached sample project to achieve your requirements. The GetPrintTicketFromPrinter method in attached application returns the System.Printing.PrintTicket. Hope this helps you.

Hi Tahir,

It is a few years later and I am looking into this area too. In your reply you mention a sample that is attached. I can’t see an attachment, has it vanished? If so, please can you re-attach it if possible?

Best regards,

Doug

@djp123

Unfortunately, the attachment is not available in this thread.

We suggest you please read the following article. Hope this helps you.
Print a Document

Could you please share some detail about your requirement? We will then answer your query accordingly.