jfalberg
jfalberg

Reputation: 151

c# printing PDF in Multiple setting output?

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.

enter image description here

Upvotes: 0

Views: 768

Answers (1)

umeshkumar sohaliya
umeshkumar sohaliya

Reputation: 267

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

Upvotes: 1

Related Questions