| Infragistics.Win.UltraWinGrid.DocumentExport Namespace > UltraGridDocumentExporter Class > Export Method : Export(UltraGrid,Report) Method |
Exports the specified ultragrid to the specified report in a new section.
[Visual Basic]
Overloads Public Function Export( _
ByVal grid As UltraGrid, _
ByVal report As Report _
) As ISectionDestination ISection.
The following code demonstrates using the Export method.
[Visual Basic]
Imports Infragistics.Documents.Report
Imports Infragistics.Win.UltraWinGrid.DocumentExport
Imports Infragistics.Documents.Report.Section
' Create a new report
Dim report As Report = New Report()
' Export the grid into the report. This will automatically create a new
' section in the report.
Dim section As ISection = Me.ultraGridDocumentExporter1.Export(Me.ultraGrid1, report)
' Publish the report.
report.Publish("grid.pdf", FileFormat.PDF)
[C#]
using Infragistics.Documents.Report;
using Infragistics.Win.UltraWinGrid.DocumentExport;
using Infragistics.Documents.Report.Section;
// Create a new report
Report report = new Report();
// Export the grid into the report. This will automatically create a new
// section in the report.
ISection section = this.ultraGridDocumentExporter1.Export(this.ultraGrid1, report);
// Publish the report.
report.Publish("grid.pdf", FileFormat.PDF);UltraGridDocumentExporter Class | UltraGridDocumentExporter Members | Overload List