Version

Export(UltraGrid,ISection) Method

Exports the specified ultragrid to the specified section of a report.
Syntax
'Declaration
 
Public Overloads Sub Export( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid, _
   ByVal section As Infragistics.Documents.Reports.Report.Section.ISection _
) 
public void Export( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid,
   Infragistics.Documents.Reports.Report.Section.ISection section
)

Parameters

grid
The Infragistics.Win.UltraWinGrid.UltraGrid control to export.
section
The destination Infragistics.Documents.Reports.Report.Section.ISection into which the grid will be exported.
Exceptions
Example
The following code demonstrates using the Export method.

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

' Create a new report
Dim report As Report = New Report()

' Add a section. 
Dim section As ISection = report.AddSection()

' Export the grid into the section. 
Me.ultraGridDocumentExporter1.Export(Me.ultraGrid1, section)

' Publish the report. 
report.Publish("grid.pdf", FileFormat.PDF)
using Infragistics.Documents.Report;
using Infragistics.Win.UltraWinGrid.DocumentExport;
using Infragistics.Documents.Report.Section;

// Create a new report
Report report = new Report();

// Add a section. 
ISection section = report.AddSection();

// Export the grid into the section. 
this.ultraGridDocumentExporter1.Export(this.ultraGrid1, section);

// 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