Back to Devexpress

PivotGridControl.ExportToXls(Stream) Method

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-dot-exporttoxls-x28-system-dot-io-dot-stream-x29.md

latest2.7 KB
Original Source

PivotGridControl.ExportToXls(Stream) Method

Exports the Pivot Grid Control’s data as XLS and sends it to the specified stream.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public void ExportToXls(
    Stream stream
)
vb
Public Sub ExportToXls(
    stream As Stream
)

Parameters

NameTypeDescription
streamStream

A Stream object to which the created document is exported.

|

Remarks

Numeric values of data fields will be exported as numbers, not as text. To export data field values as text, use another ExportToXls method overload with the useNativeFormat parameter and set this parameter to false.

The ExportToXls method indirectly calls the PrintingSystemBase.ExportToXls method of the XtraPrinting Library. If this library is not available, the method does nothing. For details on the ExportToXls method, see the PrintingSystemBase.ExportToXls topic.

For general information on exporting data, see Exporting.

See Also

ExportToHtml

ExportToMht

ExportToPdf

ExportToRtf

ExportToText

UseNativeFormat

Exporting

PivotGridControl Class

PivotGridControl Members

DevExpress.XtraPivotGrid Namespace