Here is code that shows how to access these arrays.
private void button1_Click(object sender, System.EventArgs e)
{
GridPrintDocument pd = new GridPrintDocument(this.gridControl1, true);
PrintPreviewDialog dlg = new PrintPreviewDialog();
dlg.Document = pd;
pd.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(pd_PrintPage);
pageNo = 0;
dlg.ShowDialog();
}
int pageNo = 0;
private void pd_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
int nPageRowIndex = 0;
int nPageColIndex = 0;
if (this.gridControl1.Properties.PageOrder == 0)
{
nPageRowIndex = pageNo/(gridControl1.PrintInfo.m_awPageFirstCol.Count-1);
nPageColIndex = pageNo%(gridControl1.PrintInfo.m_awPageFirstCol.Count-1);
}
else
{
nPageRowIndex = pageNo%(gridControl1.PrintInfo.m_awPageFirstRow.Count-1);
nPageColIndex = pageNo/(gridControl1.PrintInfo.m_awPageFirstRow.Count-1);
}
int leftCol = (int)this.gridControl1.PrintInfo.m_awPageFirstCol[nPageColIndex];
int topRow = (int)this.gridControl1.PrintInfo.m_awPageFirstRow[nPageRowIndex];
Console.WriteLine("page:{0} leftcol:{1} toprow:{2}", pageNo, leftCol, topRow);
pageNo += 1;
}