# Getting the right Printer Margin Bounds when working in Windows Forms... a Code Project link, via [Darth Pedro's blog](https://darthpedro.blogspot.com)...
.NET: Printer Margin Bounds in .NETThere's a very good [Code Project](https://www.codeproject.com/) article by [Philippe Leybaert](https://www.codeproject.com/script/profile/whos_who.asp?id=536673) on [getting the appropriate printer margin bounds ](https://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.