Coding for Fun and musing on gaming and development
Join the fray by commenting, tracking what others have to say, or linking to it from your blog.
a Code Project link, via Darth Pedro's blog...
.NET: Printer Margin Bounds in .NET There's a very good Code Project article by Philippe Leybaert on getting the appropriate printer margin bounds 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.
Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.
Name (required)
E-mail (required)
Website
Remember me
Be the first to comment!