Back to Devexpress

GanttControl.ExportToImage(String) Method

windowsforms-devexpress-dot-xtragantt-dot-ganttcontrol-dot-exporttoimage-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

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

csharp
public virtual void ExportToImage(
    string fileName
)
vb
Public Overridable Sub ExportToImage(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

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

|

See Also

GanttControl Class

GanttControl Members

DevExpress.XtraGantt Namespace