Home RAP

PreviewFormSetting Problem

edited November 2002 in RAP
Hi,

When I write the following code:
"Report.PreviewFormSettings.WindowState := wsMaximized;"
Then complie, the following error message exist:
"Error: ReportOnPreviewFormCretae, Line 7: Undeclared identifier:
'wsMaximised'. "
But I don't where is my problem, could someone help me?

Thanks,
Raymond Ng.

Comments

  • edited November 2002
    Hi Raymond,

    you could use '2' instead, but you can't maximize the window this way. Maximize the window in Delphi code.
    In RB7 there are properties available supporting it.

    PreviewFormSettings


    The Report, ArchiveReader and DBArchiveReader components include this new property to control the preview form settings. This replaces the OnPreviewFormCreate event handler technique, which can be used to configure the preview form?s window state and zoom setting.


    regards,
    Chris Ueberall;
This discussion has been closed.