Home Devices

Preview Questions

edited April 2003 in Devices
I want to set the size of the preview window to fullscreen and the Page size
to 100%. How do I accomplish this?

Comments

  • edited April 2003
    Hi Rick,

    if you are using RB 7.x ...
    The main report component (TppReport) now contains a PreviewFormSettings property. Use this to control the initial WindowState, ZoomSetting and ZoomPercentage of the PreviewForm.

    regards,
    Chris Ueberall;
  • edited April 2003
    Upgrade?

    Or use the OnCreatePreviewForm event, and use the following code (I cut and
    paste out of my app, and clipped a bit, so it may not be exact, but it is
    close):

    var
    lPF: TppCustomPreviewer;
    lViewer: TppViewer;
    begin
    lPF := TppCustomReport(Sender).PreviewForm;
    lViewer := TppViewer(lPF.Viewer);
    lPF.WindowState := wsMazimized;
    lViewer.ZoomSetting = zs100Percent;
    end;


    --
    Ed Dressel
    Team DM
  • edited April 2003
    Unfortunately I am still on RB6
    How can it be changed with this version?


  • edited April 2003
    Thanks
This discussion has been closed.