Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Preview - landscape and portrait and zoom not consistent

edited February 2009 in General
Delphi 7
RB 7.04

I have set the property of preview settings:
wsMaximum
100 percent

and also the page layout of the report to portrait.

However, when I call Print, it shows the preview screen sometime to portrait
and sometimes to landscape.
Also the zoom percentage is 71%.

Any idea why?

Comments

  • edited February 2009
    Hi Alan,

    Please use your real name when posting to these newsgroups.

    You need to be sure the PreviewSettings.ZoomSetting is set to zsPercentage.
    I believe the default is zsWholePage will take precedence over the zoom
    percentage.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2009
    > Hi Alan,

    Hi,

    My property settings are as follows in the Object Inspector:

    PreviewFormSettings:
    WindowState - wsMaximized
    ZoomPercentage - 100
    ZoomSettings - zsWholePage

    I can now only solved the zoom problem by:

    procedure TForm1.ppReport1PreviewFormCreate(
    Sender: TObject);
    begin
    ppReport1.PreviewFormSettings.ZoomPercentage := 100;
    end;
  • edited February 2009
    Alan,

    Please use your real name when posting to these newsgroups (changing "Man T"
    to your real name or initials would be fine).

    Are you by chance loading templates. If so, the properties saved down with
    the template will override the properties you set on the TppReport object.
    The best place to reset any properties is the template event OnLoadEnd.
    Take a look at the following article on using template events.

    http://www.digital-metaphors.com/rbWiki/Design/Templates/Using_Template_Events

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.