a Code Project link, via Darth Pedro’s blog…
.NET: Printer Margin Bounds in .NETThere's a very good [Code Project](http://www.codeproject.com/) article by [Philippe Leybaert](http://www.codeproject.com/script/profile/whos_who.asp?id=536673) on [getting the appropriate printer margin bounds ](http://www.codeproject.com/csharp/DotNetprinterbounds.asp)so that what you print from you WinForms application will appear correctly. While **PrintPageEventArgs** has a property **MarginBounds**, this property doesn't account for the hard margins of your printer for left and right margins – although they do appear to have the top and bottom margins right. However, this article describes how you can get this information from the Windows API **GetDeviceCaps**. It'll be interesting to see if this is fixed in Whidbey.
<div class="blogPost" dir="ltr"> <span class="rss:item"> </span> </div> <p dir="ltr" style="MARGIN-RIGHT: 0px">
Thoughts on this post? Feel free to reach out on Twitter!
2004-07-19 09:25 +0000
e06898f @ 2019-03-31