ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / EnablePreview Property
Example

In This Topic
    EnablePreview Property
    In This Topic
    Gets or sets a value determining whether the preview tab on the Designer control is enabled or disabled.
    Syntax
    'Declaration
     
    Public Property EnablePreview As Boolean
    public bool EnablePreview {get; set;}

    Property Value

    true if the 'Preview' tab is enabled and visible; otherwise, false. The default is true.
    Remarks
    This property controls the visibility of the 'Preview' tab, which allows users to view a rendered preview of the current report. When set to false, the 'Preview' tab is hidden, and users cannot access the preview functionality directly from the design surface.
    Example
    // Enable the preview tab in the designer
    designer.EnablePreview = true;
    // Disable the preview tab in the designer
    designer.EnablePreview = false;
    See Also