Back to Devexpress

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

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-dot-exporttohtml-x28-system-dot-io-dot-stream-system-dot-string-system-dot-string-system-dot-boolean-x29.md

latest3.0 KB
Original Source

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

Exports the Pivot Grid Control’s data to an HTML document with the specified encoding 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.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

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

Parameters

NameTypeDescription
streamStream

A Stream object which the created document is exported to.

| | htmlCharSet | String |

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

| | title | String |

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

| | compressed | Boolean |

true to compress the HTML 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

ExportToMht

ExportToPdf

ExportToRtf

ExportToText

ExportToXls

PivotGridControl Class

PivotGridControl Members

DevExpress.XtraPivotGrid Namespace