Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing windows application in visual studio 2008 and SQL 2005. In that project i want to set print page margin at runtime from textbox and set the page margin ...How can i do it ..

please help me if any one knows..
Posted
Comments
Dirk C De Winnaar 26-Sep-11 11:01am    
http://msdn.microsoft.com/en-us/library/ms996472.aspx

You will have to set up a print style sheet.
Gather the info fomr the textboxes on your form and then generate a dynamic print style sheet.


Try This Link To Learn About Print Styles

They are not that hard to do.
Good Luck.
 
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