See Also

UltraGridDocumentExporter Class  | UltraGridDocumentExporter Members  | Overload List

Language

Visual Basic

C#

Show All

grid
Grid to export.
See Also Languages Infragistics2.Win.UltraWinGrid.DocumentExport.v7.2

Export(UltraGrid) Method

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

Creates a new report and exports the specified grid into the report in a new section.

[Visual Basic]
Overloads Public Function Export( _    ByVal grid As UltraGrid _ ) As ISection
[C#]
public ISection Export(    UltraGrid grid );

Parameters

grid
Grid to export.

Return Type

Created Report.

Example

The following code demonstrates using the Export method.

[Visual Basic] 

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

' Export the grid imports the overload of Export that takes only a grid.
' This creates a new report, creates a new section, and exports the grid
' into that section.
Dim section As ISection = Me.ultraGridDocumentExporter1.Export(Me.ultraGrid1)

' Get the report from the section.
Dim Report As Report = Section.Parent

' Publish the report.
Report.Publish("grid.pdf", FileFormat.PDF)

[C#] 

using Infragistics.Documents.Report; 
using Infragistics.Win.UltraWinGrid.DocumentExport; 
using Infragistics.Documents.Report.Section; 
    
// Export the grid using the overload of Export that takes only a grid. 
// This creates a new report, creates a new section, and exports the grid 
// into that section.   
ISection section = this.ultraGridDocumentExporter1.Export(this.ultraGrid1); 
 
// Get the report from the section.  
Report report = section.Parent; 
 
// Publish the report.  
report.Publish("grid.pdf", FileFormat.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