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

Exports the Pivot Grid Control's data to an MHT document (Web archive, single file) at the specified path and title and sends it to the specified stream. The output file can be compressed (secondary characters e.g. spaces are removed) if required.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v20.1.dll

Declaration

public void ExportToMht(
    Stream stream,
    string htmlCharSet,
    string title,
    bool compressed
)
Public Sub ExportToMht(
    stream As Stream,
    htmlCharSet As String,
    title As String,
    compressed As Boolean
)

Parameters

Name Type Description
stream Stream

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

htmlCharSet String

A String which specifies the encoding name set in the MHT document (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

The Pivot Grid Control's data can only be exported if the XtraPrinting Library is available. Use the PivotGridControl.IsPrintingAvailable property to check whether the grid's data can be exported.

See Also