Search Results for

    Show / Hide Table of Contents

    Configuring the FastReport environment

    Using the FastReport.Utils.Config global class, you can control some FastReport environment settings.

    The Config.ReportSettings property contains some report-related settings:

    Property Description
    Language DefaultLanguage The default script language for new reports.
    bool ShowProgress Determines whether it is necessary to show the progress window.
    bool ShowPerformance Determines whether to show the information about the report performance (report generation time, memory consumed) in the lower right corner of the preview window.

    The Config.DesignerSettings property contains some designer-related settings:

    Property Description
    Icon Icon The icon for the designer window.
    Font DefaultFont The default font used in a report.

    The Config.PreviewSettings property contains some preview-related settings:

    Property Description
    PreviewButtons Buttons Set of buttons that will be visible in the preview's toolbar.
    int PagesInCache The number of prepared pages that can be stored in the memory cache during preview.
    bool ShowInTaskbar Determines whether the preview window is displayed in the Windows taskbar.
    bool TopMost Determines whether the preview window should be displayed as a topmost form.
    Icon Icon The icon for the preview window.
    string Text The text for the preview window. If no text is set, the default text "Preview" will be used.

    The Config.EmailSettings property contains email account settings. These settings are used in the "Send Email" feature in the preview window:

    Property Description
    string Address Sender address (e.g. your email address).
    string Name Sender name (e.g. your name).
    string MessageTemplate The message template that will be used to create a new message. For example, "Hello, Best regards, ...".
    string Host SMTP host address.
    int Port SMTP port (25 by default).
    string UserName, string Password User name and password. Leave these properties empty if your server does not require authentication.
    bool AllowUI Allows to change these settings in the "Send Email" dialog. Settings will be stored in the FastReport configuration file.

    UI style settings are available in the following properties of Config class:

    Property Description
    UIStyle UIStyle The style of designer and preview form.

    Besides these properties, there are some events. Using such events, you may do the following:

    • replace standard "Open file" and "Save file" dialogs in the designer;
    • replace standard progress window;
    • pass own connection string to a connection defined in the report.

    These tasks will be described in the following sections of this manual.

    Back to top © 1998-2025 Copyright Fast Reports Inc.