Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have application where we draw rectagles and lines run time on windows form.
My requirement is that, I need to draw these controls on windows form as per printer page layout settings.

When I apply zoom factor to windows forms it is working fine. Is any boday have solution for drawing controls on windows form as per printer page settings.

Regards,
Somnath Avhad.
Posted
Comments
Chris Ross 2 24-Jun-13 12:40pm    
You may need to provide a little more information than "per printer page layout settings."

I am guessing that you mean portrait/landscape and margin settings - so that you can determine the maximum area that will fit on a page. But that's only a guess: you may have something completely different in mind!

If you update your question you'll have a better chance of an answer!

1 solution

I recommend first experimenting with writing a program that gets and sets the page layout settings. At this point, completely forget about drawing rectangles, etc., and just concentrate on understanding what settings you can get for the selected printer and how to get them.

Once you are able to get the printer settings - and understand what they are, most likely you'll figure out how to apply them in your application.
 
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