CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Oct 2006
    Posts
    181

    Difficulty Printing

    Everything I draw looks perfect and is aligned perfectly in the print preview but when I actually print things come out different.

    For example, if I draw a rectangle using printableArea, I get a rectangle about 1/4" around the page in the print preview but when I print the right side of the rectangle is cut off.

    After trying more stuff, I tried setting the margins to 1/2" and used MarginBounds instead of PrintableArea. Everything shows up nicely centered on the print preview but when I print everything is shifted right and down half an inch.

    I thought what you do in the print preview is supposed to be the same as the actual print. Obviously not, I don't have a problem with writing code to check if I'm doing a print preview or an actual printing and adjust the locations I calculate accordingly but I need to know what's going on the adjust my calculations. I have yet to see a pattern. Are my calculations automatically shifted by the printable area? the margin? something else?

    Can someone explain what's going on?


    Thanks,
    Scott MacMaster
    Last edited by Scott.Macmaster; November 8th, 2006 at 05:09 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured