In my application, I am generating a report using run time with methods like this below, where I start on the screen a label
. How could I find out which page was printed on label
? I need to store the page number in an array , for each printed label.
private static void AddLabelToXtraReport(XtraDadosEmpresa relatorio, String titulo, int tamanho)
{
XRLabel Titulo = new XRLabel();
Titulo.WidthF = 790f;
Titulo.Text = titulo;
Titulo.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter;
Titulo.Font = new Font("Times New Roman", tamanho, FontStyle.Bold);
DevExpress.XtraReports.UI.DetailReportBand detailReportBand = new DetailReportBand();
relatorio.Bands.Add(detailReportBand);
DevExpress.XtraReports.UI.DetailBand novaBand = new DetailBand();
novaBand.HeightF = Titulo.HeightF + 10F;
detailReportBand.Bands.Add(novaBand);
novaBand.Controls.Add(Titulo);
}