Back to Devexpress

ChartControl.ExportToMht(Stream, String, String, Boolean) Method

windowsforms-devexpress-dot-xtracharts-dot-chartcontrol-dot-exporttomht-x28-system-dot-io-dot-stream-system-dot-string-system-dot-string-system-dot-boolean-x29.md

latest3.0 KB
Original Source

ChartControl.ExportToMht(Stream, String, String, Boolean) Method

OBSOLETE

This method is now obsolete. You should use the ExportToMht method instead.

Exports the chart’s layout to an MHT document (Web archive, single file) on the specified path, with the specified title and sends it to the specified stream.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is now obsolete. You should use the ExportToMht(Stream, MhtExportOptions) method instead.")]
public void ExportToMht(
    Stream stream,
    string htmlCharSet,
    string title,
    bool compressed
)
vb
<Obsolete("This method is now obsolete. You should use the ExportToMht(Stream, MhtExportOptions) method instead.")>
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Sub ExportToMht(
    stream As Stream,
    htmlCharSet As String,
    title As String,
    compressed As Boolean
)

Parameters

NameTypeDescription
streamStream

A Stream object to which the created MHT document is exported.

| | htmlCharSet | String |

A String which specifies the encoding name set in the MHT file (e.g. “UTF-8”).

| | title | String |

A String which specifies the name shown as the title of the created MHT document.

| | compressed | Boolean |

true to compress the MHT code (secondary characters e.g. spaces are removed); otherwise, false.

|

Remarks

This method is now obsolete. Instead, use the ChartControl.ExportToMht method with the options parameter.

See Also

ExportToHtml

IsPrintingAvailable

ChartControl Class

ChartControl Members

DevExpress.XtraCharts Namespace