protected override void OnPrintPage(System.Drawing.Printing.PrintPageEventArgs ev) { base.OnPrintPage(ev); if(pageNo == 1) { //..... } pageNo++; }This will be the simplest thing to do if it will serve your needs.
public GridPrintAtLocDocument(GridControlBase grid, bool printPreview) : base(grid, printPreview) { _grid = grid; headerHeight = 50; footerHeight = 20; int left = this.DefaultPageSettings.Margins.Left; int top = this.DefaultPageSettings.Margins.Top + headerHeight; //50 lower int right = this.DefaultPageSettings.Margins.Right; int bottom = this.DefaultPageSettings.Margins.Bottom; this.DefaultPageSettings.Margins = new Margins(left, right, top, bottom); pageNo = 1; }