Preview - landscape and portrait and zoom not consistent
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?
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?
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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;
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com