By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

Print Preview / Output disagree

P: n/a
To correctly print to paper, I had to offset the
MarginBounds by (-16, -16). Has anyone else had this
problem, or found a more elegant solution?
I'm printing to 8.5 x 11 inch paper and I get the same
results using sample programs.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Michael,
You are seeing the effects of the 'hard margins' on your printer. If
you are using Framework 1.1 you can work around this by setting the
OriginAtMargins property of the PrintDocument to true which then sets 0,0 at
your top,left margin. For Framework 1.0 you will need to PInvoke
GetDeviceCaps to get the printer margins and then translate your graphics
object appropriately at the start of each page. I have a class written in
C# that encapsulates GetDeviceCaps that you may copy if you like (just let
me know).

Ron Allen
"Michael Mitchell" <mm*******@geostats.com> wrote in message
news:05****************************@phx.gbl...
To correctly print to paper, I had to offset the
MarginBounds by (-16, -16). Has anyone else had this
problem, or found a more elegant solution?
I'm printing to 8.5 x 11 inch paper and I get the same
results using sample programs.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.