Print Preview bug ?

  • Thread starter Thread starter Todd Gibbs
  • Start date Start date
T

Todd Gibbs

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.
 
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 PrintPreviewControl 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.
 
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 PrintPreviewDialog and PrintPreviewControl,
setting the margins to a fixed value in the constructor, pagePrint event and
queryPageSetting event.

Thanks again for any help you can offer.

Todd.
 
Back
Top