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

Preview report in full screen.

edited May 2003 in End User
Dear All

I need some help on using Delphi to preview ReportBuilder.

I'm currently using this coding to preview report.

...
with ppReport1 do begin
DeviceType := 'Screen';
Print;
end;
...

This coding results to preview report in about 22% of report's actual size
and the dialog size is about 1/3 of the full screen.

Is there a posiblity to control the size of the preview dialog and the
percentage of the report's size? If so, please advise me.

Thanks in advance.

Kongthap Thammachat
jeud@yahoo.com
ICQ: 13026976

Comments

  • edited May 2003
    TppReport has publlished property "PreviewFormSettings" which allows you to
    manipulate preview window size through WindowState,ZoomPercentage and
    ZoomSetting. That should be enough.

    In your case:
    with ppReport1 do begin
    DeviceType := 'Screen';
    PreviewFormSettings.WindowState:=wsMaximized;
    Print;
    end;
    Would show the preview window at full screen size.

This discussion has been closed.