Groups | Blog | Home
all groups > dotnet drawing api > june 2005 >

dotnet drawing api : How to print to a fixed point



zhaounknown
6/22/2005 10:07:01 PM
How can I print a String into a fixed point in a Letter page, say, 1.32inch
to the left edge of the paper, and 2.54inch from top edge. Could anyone give
a simple sample code for this?

Bob Powell [MVP]
6/23/2005 8:01:49 AM
KB193943 How to use GetDeviceCaps to determine the margins on a page.

Once you know where the hard margins are, and this may be different with
every printer, you can print at any specific point within the printable
area. If the point you specify isn't within ght eprintable areaa, obviously,
you're a bit stuck for possibilities.
--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





[quoted text, click to view]

AddThis Social Bookmark Button