I,
I want to center the wingrid before i export the document to a pdf.
What iam doing now is simply adding a header to a grid using the Infragistics.Documents.Report.
LIke this
:
Dim documentExporter As New InfDocumentExport.UltraGridDocumentExporter
Dim r As New Infragistics.Documents.Report
Dim StandardReport As InfSection.ISection = r.AddSection
... add header...
documentExporter.Export(grdReportData, StandardReport)
export the grid.
Now i want to center the grid in my pdf document , how to do that?
IS it a simple way to do that using code?
You can center the grid in the document by using the BeginExport event of the UltraGridDocumentExporter. Below is the snippet.
Private Sub ultraGridDocumentExporter1_BeginExport(sender As Object, e As BeginExportEventArgs) e.Section.PageAlignment.Horizontal = Alignment.Center End Sub