well i've traced and debug-ed a bit.
PrintPageEventArgs e.MarginBounds and e.PageBounds are correct and to the exact dimensions i need them to be. as in (if i select A4 paper) 827 in hundreads of an inch, 8,27 in normal inches.
i've set the richtext box Client size to this width as you have seen...
a few things. first thanks .. because you've shed some light on this. it works to a certain point. as in the width of the richtextbox is about fine, but the text isn't how i desired to be. there are diferences betwin the print version and the one i show on the screen and i think it's because of...
how do i transform inches to pixels and viceversa ? if it was c++ i'd use the device context functions lptodp and lptohimetric but i need a C# solution.
i need to resize some richtextboxes to an exact size(on screen). the thing is the size i need to set it to is in inches and i need pixels...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.