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

zoomsetting?

edited May 2003 in General
I am testing Delphi 7 with reportBuilder 7 server. There is a command that
is being used with my Delphi 5 and my previous version of reportbuilder for
D5 that sets the zoomsetting for the previewform and setting the pagewidth
as follows:

procedure TfrmReportWizard.rbTemptblPreviewFormCreate(Sender: TObject);
begin
rbTemptbl.PreviewForm.WindowState := wsMaximized;
TppViewer(rbTemptbl.PreviewForm.Viewer).ZoomSetting := zsPageWidth;
end;

This code works in D5 with RB5. However with D7 and RB7 the zsPageWidth
gives me an error of undeclared identifier.

Thank you,
Randy

Comments

  • edited May 2003
    Add ppTypes to the uses clause.

    There is a new Report.PreviewFormSettings property. The old code will still
    work in the OnPreviewFormCreate event. However, if you want to change the
    Report.PreviewFormSettings before the report prints, then make the changes
    to Report.PreviewFormSettings in the Report.OnAssignPreviewFormSettings
    event (new for RB 7).


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.