I have a .net application in c# where I'm trying to print using a pdf document on the left side and a text description on the right side. So far I've been successful in combining the 2 outputs into one pdf file, but am stumped on how to programmatically do it so that when I go to print, then in the Page Sizing & Handling section, select "Multiple" and set pages per sheet to 2.
My guess is it's a process print feature somewhere but can't seem to find any examples nor clear documentation to do so. Please advise, thanks.
if you want to set pages per sheet from the backend rather than print/ print dialog you have to use PrintTicket Class [System.Printing]. this classs have lots of property and events that can allow us to do lots of printing and printing job related stuff using c# code. there is also many classes related to printing in this name space[ may you know about the xps in windows when you going to print may you see option print to xps it is belongs to Print Schema class]
you can read more about it from https://msdn.microsoft.com/en-us/library/system.printing.printticket.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.