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
Preview
rbuser
May 2003
edited May 2003
in
General
Hi
How can I set the report-preview to windowstate=maximized? I don?t want use
the component ppViewer, I want use the default viewer of ReportBuider.
Thanks
Gerson Luiz Pedrinho
Brazil
RB Version 6.22
Comments
nicocizik
May 2003
edited May 2003
Gerson,
In RB 7 you can change the Report.PreviewFormSettings.WindowState to
wsMaximized in the Object Inspector. This is a new published property for
RB 7.
For RB 6, please refer to the article below...
------------------------------------------------
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.
--
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
This discussion has been closed.
Comments
In RB 7 you can change the Report.PreviewFormSettings.WindowState to
wsMaximized in the Object Inspector. This is a new published property for
RB 7.
For RB 6, please refer to the article below...
------------------------------------------------
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com