Version

Export(UltraGrid,Stream,GridExportFileFormat) Method

Exports the specified grid to the specified file.
Syntax
'Declaration
 
Public Overloads Sub Export( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid, _
   ByVal stream As Stream, _
   ByVal fileFormat As GridExportFileFormat _
) 
public void Export( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid,
   Stream stream,
   GridExportFileFormat fileFormat
)

Parameters

grid
The Infragistics.Win.UltraWinGrid.UltraGrid control to export.
stream
The stream into which the grid will be exported.
fileFormat
The file format of the report.

Return Value

The newly-created Infragistics.Documents.Reports.Report.Report into which the grid was exported.
Exceptions
Example
Demonstrates exporting a grid into a stream.

Imports Infragistics.Documents.Report
Imports Infragistics.Win.UltraWinGrid.DocumentExport

' Create a memory stream
Dim stream As MemoryStream = New MemoryStream()

' Export the grid into the stream. 
Me.ultraGridDocumentExporter1.Export(Me.ultraGrid1, stream, GridExportFileFormat.PDF)
using Infragistics.Documents.Report;
using Infragistics.Win.UltraWinGrid.DocumentExport;

// Create a memory stream
MemoryStream stream = new MemoryStream();

// Export the grid into the stream. 
this.ultraGridDocumentExporter1.Export(this.ultraGrid1, stream, GridExportFileFormat.PDF);
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also