Back to Devexpress

SankeyDiagramControl.ExportToMht(String, MhtExportOptions) Method

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

latest2.7 KB
Original Source

SankeyDiagramControl.ExportToMht(String, MhtExportOptions) 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 to a file in MHT format with the specified export settings.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Parameters

NameTypeDescription
filePathString

The file path that includes the file name and extension.

| | options | MhtExportOptions |

Export settings.

|

Remarks

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

csharp
MhtExportOptions exportOptions = new MhtExportOptions();
exportOptions.Title = "Sankey Diagram Control";
sankeyDiagramControl1.ExportToMht("D:/temp/ExportedDocument1.mht", exportOptions);
vb
Dim exportOptions As MhtExportOptions = New MhtExportOptions()
exportOptions.Title = "Sankey Diagram Control"
sankeyDiagramControl1.ExportToMht("D:/temp/ExportedDocument1.mht", exportOptions)

See Also

ExportToMht(Stream)

ExportToMht(String)

ExportToMht(Stream, MhtExportOptions)

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace