How to add PageNofM???
Posted: Fri Jun 08, 2007 5:08 am
Hi,
i want to add page number in system text at run time.so i tried following,
StiPageFooterBand PageFooterBand1 = new Stimulsoft.Report.Components.StiPageFooterBand();
PageFooterBand1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 10.71, 7.49, 0.2);
PageFooterBand1.Dock = System.Windows.Forms.DockStyle.Bottom;
PageFooterBand1.Name = "PageFooterBand1";
PageFooterBand1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
PageFooterBand1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
page.Components.Add(PageFooterBand1);
StiSystemText SystemText1 = new Stimulsoft.Report.Components.StiSystemText();
SystemText1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 7.49, 0.2);
SystemText1.Dock = System.Windows.Forms.DockStyle.Fill;
SystemText1.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Right;
SystemText1.Name = "SystemText1";
SystemText1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Top, System.Drawing.Color.DimGray, 0.5, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
SystemText1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
SystemText1.Font = new System.Drawing.Font("Arial Unicode MS", 8F);
SystemText1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
SystemText1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
SystemText1.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
SystemText1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
PageFooterBand1.Components.Add(SystemText1);
But i dont know, how to add PageNofM???
Please Provide the solution....
Thanks in advance,
Jaykumar
i want to add page number in system text at run time.so i tried following,
StiPageFooterBand PageFooterBand1 = new Stimulsoft.Report.Components.StiPageFooterBand();
PageFooterBand1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 10.71, 7.49, 0.2);
PageFooterBand1.Dock = System.Windows.Forms.DockStyle.Bottom;
PageFooterBand1.Name = "PageFooterBand1";
PageFooterBand1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
PageFooterBand1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
page.Components.Add(PageFooterBand1);
StiSystemText SystemText1 = new Stimulsoft.Report.Components.StiSystemText();
SystemText1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 7.49, 0.2);
SystemText1.Dock = System.Windows.Forms.DockStyle.Fill;
SystemText1.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Right;
SystemText1.Name = "SystemText1";
SystemText1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.Top, System.Drawing.Color.DimGray, 0.5, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
SystemText1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
SystemText1.Font = new System.Drawing.Font("Arial Unicode MS", 8F);
SystemText1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
SystemText1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
SystemText1.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
SystemText1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
PageFooterBand1.Components.Add(SystemText1);
But i dont know, how to add PageNofM???
Please Provide the solution....
Thanks in advance,
Jaykumar