Preview always maximized

edited September 2017 in General
Hi,

Is there a way to show the preview form of the report always maximized?
Even when formsize was changed the previous time it was shown (it seems to
remember this last setting)?

Thanks!

Comments

  • edited September 2017
    Hi Stef,

    Currently the preview window size and placement is overwritten by the
    previously used values that are saved in the .ini file. The
    PreviewFormSettings.WindowState property is used before the .ini file is
    written to.

    There is definitely room for improvement with this and we have added it
    to our like of possible features to disable the .ini file feature so the
    PreviewFormSettings are always used.

    Currently you can override the .ini file usage by adding the following
    line of code to the Report.OnPreviewFormCreate event.

    uses
    ppForms;

    procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject);
    begin
    TppFormState.SaveWindowPlacement(ppReport1.PreviewForm, 'PreviewForm');

    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2017
    Hello Nico,

    Thank you very much for the workaround.
    And great that you add this feature to the improvement-list.
This discussion has been closed.