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

View Report with 50% or 100%

edited February 2003 in General
Hello!
On my Form1 I have two Buttons:
One, which should show the Report and one, which should print the report.
But when I will show the report, I only see it at 22% and not with 50% or
100%.
Is it possible to show the report in 100% and 50% which is defined in the
OnKlick on the Button?
My actual source of the button is:
ppReport1.DeviceType:=dtPrinter;
ppReport1.Print;

Thank you very much in advanced

Daniel

Comments

  • edited February 2003
    It depends which version of RB you are using. If it is version 7 then you
    can
    set the default zoom in the PreviewFormSettings property of the Report
    component. If you are using an older version then you will need to set it in
    the
    OnPreviewFormCreate event of the Report with something like the following
    code.

    TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent

    For this code to compile you will need to add ppTypes to your uses clause as
    this defines the ZoomSetting constants.

    Hope this helps

    Paul

  • edited February 2003
    Hello Paul,

    Thank you very much, I had not seen this setting because I hadn't seen it in
    the documentation, but now it works.I use Version 7 in Trial.

    Daniel
This discussion has been closed.