Is there a way to specify page header and/or footer text when you print/display the WinGrid using the call below:
Dim
c_pdSetup As New System.Drawing.Printing.PrintDocument()
WinGrid.PrintPreview(WinGrid.DisplayLayout, c_pdSetup)
private void ultraGrid1_InitializePrintPreview(object sender, CancelablePrintPreviewEventArgs e) { e.DefaultLogicalPageLayoutInfo.PageHeader = "My Page Header"; e.DefaultLogicalPageLayoutInfo.PageFooter = "My Page Footer"; }
Thanks, that works great.
Is there a way to have a two line header and to align part of the header or footer to the right (like the page number)?