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

PPViewer

edited June 2001 in General
Hi,

I am fairly new to Report Builder. I am using the Viewer to show my reports
and I was wondering if I could take out the grey border in the viewer when
previewing reports. I do not want any grey area, I want the report to take
up all of the grey space in the viewer. Is this possible? If so, could you
point me in the right direction on how to do this?

Thank You,

Jada Case

Comments

  • edited June 2001
    You would need to modify the screen device (TppScreenDevice in ppViewr.pas)
    to take out the grey dead area. If you would like to change the zoom when
    the preview is shown, 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.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited June 2001
    Jim,

    Thank you much for your help!!

    Jada Case


This discussion has been closed.