Version

Export(UltraGrid) Method

Creates a new Infragistics.Documents.Reports.Report.Report and exports the specified grid into the report in a new Infragistics.Documents.Reports.Report.Section.ISection.
Syntax
'Declaration
 
Public Overloads Function Export( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid _
) As Infragistics.Documents.Reports.Report.Section.ISection
public Infragistics.Documents.Reports.Report.Section.ISection Export( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid
)

Parameters

grid
The Infragistics.Win.UltraWinGrid.UltraGrid control to export.

Return Value

The newly-created report section in the newly-created report into which the grid was exported.
Exceptions
ExceptionDescription
System.ArgumentNullExceptiongrid is null.
Example
The following code demonstrates using the Export method.

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)
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);
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