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

Print Preview Window too small

edited February 2002 in General

The print preview window appears too small when it is printed to the screen.
Can I change this so the preview is maximised or a specified size?

Regards,

Kieron

--
Kieron G Smith
Work: work@kieronsmith.co.uk
And Play: play@kieronsmith.co.uk

Comments

  • edited February 2002
    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 Corp



This discussion has been closed.