Print Preview bug ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Todd Gibbs

    #1

    Print Preview bug ?

    Hi guys,

    Im trying to use the PrintDialog stuff in my graphics package to allow
    people to print their photos.

    It all works fine and the user can specific margins and photo size, but I
    can't get the preview to show the margins.

    I must be setting them correctly because they print ok, but no matter what I
    do the PreviewDialog just shows the photo "top left" and ignores the
    margins.

    Am I missing something ? Thats for any help.

    Todd.


  • Bruce Wood

    #2
    Re: Print Preview bug ?

    I remember wrestling with this a while back, but I can't remember the
    details.

    First off, you do realize that your PrintPage method is responsible for
    creating the margins by starting to draw down and to the right of the
    (0, 0) point of the Graphics object on which you're rendering?

    Nonetheless, I do remember some mess about the PrintPreviewCon trol not
    showing the page with the same margins that were coming out of the
    printer. I'll see if I can find any notes on that when I get back to
    work.

    Comment

    • Todd

      #3
      Re: Print Preview bug ?

      Thanks Bruce,

      I've tried everything I can think of, apart from manually render the margins
      into the Graphic object myself ! :)

      The strange thing is that it prints fine, but just won't show in the
      preview. Ive tried both the PrintPreviewDia log and PrintPreviewCon trol,
      setting the margins to a fixed value in the constructor, pagePrint event and
      queryPageSettin g event.

      Thanks again for any help you can offer.

      Todd.

      "Bruce Wood" <brucewood@cana da.com> wrote in message
      news:1141109992 .998922.299690@ i39g2000cwa.goo glegroups.com.. .[color=blue]
      >I remember wrestling with this a while back, but I can't remember the
      > details.
      >
      > First off, you do realize that your PrintPage method is responsible for
      > creating the margins by starting to draw down and to the right of the
      > (0, 0) point of the Graphics object on which you're rendering?
      >
      > Nonetheless, I do remember some mess about the PrintPreviewCon trol not
      > showing the page with the same margins that were coming out of the
      > printer. I'll see if I can find any notes on that when I get back to
      > work.
      >[/color]


      Comment

      Working...