zoomsetting?
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com