ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / CanExport Property
Example

In This Topic
    CanExport Property (Viewer)
    In This Topic

    Indicates whether the currently loaded report can be exported.

    Syntax
    'Declaration
     
    Public ReadOnly Property CanExport As Boolean
    public bool CanExport {get;}

    Property Value

    True if export is permitted; otherwise, false. Exporting is permitted only if the viewer is not disposed, there is at least one page loaded in the viewer, and the underlying API supports exporting.
    Example
    // Assuming 'exportMenuItem' is a ToolStripMenuItem for exporting
    exportMenuItem.Enabled = viewer.CanExport;
    See Also