Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Center the wingrid berfore exporting
posted

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?

Parents
No Data
Reply
  • 4940
    Offline posted

    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

     

Children
No Data