Skip to main content
All docs
V25.2
  • GanttControl.ExportToImage(String) Method

    SECURITY-RELATED CONSIDERATIONS

    Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

    Exports the Gantt control’s data to the specified file in PNG format.

    Namespace: DevExpress.XtraGantt

    Assembly: DevExpress.XtraGantt.v25.2.dll

    NuGet Package: DevExpress.Win.Gantt

    Declaration

    public virtual void ExportToImage(
        string fileName
    )

    Parameters

    Name Type Description
    fileName String

    The the full name of the file to which the Gantt control is exported.

    See Also