See Also

UltraGridDocumentExporter Class  | UltraGridDocumentExporter Members  | Overload List

Language

Visual Basic

C#

Show All

grid
Grid to export.
fileName
Name and path of resulting file.
fileFormat
The file format of the report.
See Also Languages Infragistics2.Win.UltraWinGrid.DocumentExport.v7.2

Export(UltraGrid,String,GridExportFileFormat) Method

Infragistics.Win.UltraWinGrid.DocumentExport Namespace > UltraGridDocumentExporter Class > Export Method : Export(UltraGrid,String,GridExportFileFormat) Method

Exports the specified grid to the specified file.

[Visual Basic]
Overloads Public Sub Export( _    ByVal grid As UltraGrid, _    ByVal fileName As String, _    ByVal fileFormat As GridExportFileFormat _ )
[C#]
public void Export(    UltraGrid grid,    string fileName,    GridExportFileFormat fileFormat );

Parameters

grid
Grid to export.
fileName
Name and path of resulting file.
fileFormat
The file format of the report.

Return Type

Created Report.

Example

Demonstrates exporting the grid to a report.

[Visual Basic] 

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

Me.ultraGridDocumentExporter1.Export(Me.ultraGrid1, "grid.pdf", GridExportFileFormat.PDF)

[C#] 

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

See Also

UltraGridDocumentExporter Class  | UltraGridDocumentExporter Members  | Overload List

E-mail your feedback on this topic.

Opinion about our help? Take our survey.

Copyright © 1996-2007 Infragistics, Inc. All rights reserved.

Build Version: 7.2.20072.1063