Back to Devexpress

SankeyDiagramControl.ExportToMht(String) Method

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-dot-exporttomht-x28-system-dot-string-x29.md

latest2.2 KB
Original Source

SankeyDiagramControl.ExportToMht(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 Sankey Diagram Control in MHT format to the specified file.

Namespace : DevExpress.Xpf.Charts.Sankey

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ExportToMht(
    string filePath
)
vb
Public Sub ExportToMht(
    filePath As String
)

Parameters

NameTypeDescription
filePathString

The file path that includes the file name and extension.

|

Remarks

The following example uses the ExportToMht method to export the Sankey Diagram Control to a file:

csharp
sankeyDiagramControl1.ExportToMht("D:/temp/ExportedDocument.mht");
vb
sankeyDiagramControl1.ExportToMht("D:/temp/ExportedDocument.mht")

See Also

ExportToMht(Stream)

ExportToMht(String, MhtExportOptions)

ExportToMht(Stream, MhtExportOptions)

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace