Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
maximize local preview form
rbuser
September 2002
edited September 2002
in
General
How do I maximize the local preview form when I ppReport1.print.
Thanks in advance
Comments
digitalmetaphors
September 2002
edited September 2002
In RB 7 you can simply set the Report.PreviewFormSettings property.
In RB 6.03 and earlier, you have to code an event handler after you load
each template:
------------------------------------------------
Tech Tip: Controlling the Built-in Previewer
------------------------------------------------
You can control the built-in preview form via the
Report.OnPreviewFormCreate event.
For example the following code sets the Print Preview form to
maximized and sets the Viewer ZoomSetting to 100%:
procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
begin
ppReport1.PreviewForm.WindowState := wsMaximized;
TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;
end;
Note: You will need to add ppViewr to the uses clause of your unit,
so that the ZoomSetting enumerated type is recognized by the
compiler.
--
Tech Support mailto:support@digital-metaphors.com
Digital Metaphors
http://www.digital-metaphors.com
Cheers,
Jim Bennett
Digital Metaphors
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
This discussion has been closed.
Comments
In RB 6.03 and earlier, you have to code an event handler after you load
each template:
------------------------------------------------
Tech Tip: Controlling the Built-in Previewer
------------------------------------------------
You can control the built-in preview form via the
Report.OnPreviewFormCreate event.
For example the following code sets the Print Preview form to
maximized and sets the Viewer ZoomSetting to 100%:
procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
begin
ppReport1.PreviewForm.WindowState := wsMaximized;
TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;
end;
Note: You will need to add ppViewr to the uses clause of your unit,
so that the ZoomSetting enumerated type is recognized by the
compiler.
--
Tech Support mailto:support@digital-metaphors.com
Digital Metaphors http://www.digital-metaphors.com
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com