Version

Export(UltraGrid,String,GridExportFileFormat) Method

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

Parameters

grid
The Infragistics.Win.UltraWinGrid.UltraGrid control to export.
fileName
Name and path of resulting file.
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 the grid to a report.

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

Me.ultraGridDocumentExporter1.Export(Me.ultraGrid1, "grid.pdf", GridExportFileFormat.PDF)
using Infragistics.Documents.Report;
using Infragistics.Win.UltraWinGrid.DocumentExport;

this.ultraGridDocumentExporter1.Export(this.ultraGrid1, "grid.pdf", 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