Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone

i was trying to print a pdf via the System.Drawing.Printing.PrinterSettings and System.Drawing.Printing.PageSettings. i wasn't able to set the paper thickness via these classes. how can i set the paperthickness? - maybe there's another way!?

thanks in advance,

sebi
Posted
Comments
Leo Chapiro 4-Feb-15 5:01am    
Just out of curiosity: what exactly do you need to set the paper thickness please?

try this


PrintDocument pd = new PrintDocument();

pd.DefaultPageSettings.PaperSize = pd.PrinterSettings.PaperSizes(200,200);
 
Share this answer
 
You don't set a thinckness, you set a PaperType via the PageMediaType property[^]
The available types are: https://msdn.microsoft.com/en-us/library/system.printing.pagemediatype(v=vs.110).aspx[^]

How do you get the Ticket? From the PrintTicket property of the PrintDocument instance.

That's the theory, anyway - I haven't tried it!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900