void CreatePageFooter() { var lineNrField = new BaseTextItem() { Text = "='Page : ' + Globals!PageNumber + ' of ' + Globals!Pages + ' Page(s)'", Name = "LineNumber", Size = new Size(GlobalValues.PreferedSize.Width * 2, GlobalValues.PreferedSize.Height) }; var xLoc = DesignerHelper.AlignRight(ReportModel.ReportSettings.PrintableWidth(), lineNrField.Size.Width) - 5; lineNrField.Location = new Point(xLoc, 10); ReportModel.PageFooter.Items.Add(lineNrField); }
void CreateReportHeader(ReportWizardContext context) { var pageOneContext = (PageOneContext)context.PageOneContext; var centerLocation = DesignerHelper.AlignCenter(ReportModel.ReportSettings.PrintableWidth(), GlobalValues.PreferedSize.Width); var headerText = new BaseTextItem() { Text = String.IsNullOrEmpty(pageOneContext.ReportName) ? GlobalValues.DefaultReportName : pageOneContext.ReportName, Location = new Point(centerLocation, 10) }; ReportModel.ReportHeader.Items.Add(headerText); var xLoc = DesignerHelper.AlignRight(ReportModel.ReportSettings.PrintableWidth(), GlobalValues.PreferedSize.Width) - 5; var dateText = new BaseTextItem() { Text = "= Today.Today", Location = new Point(xLoc, 10) }; ReportModel.ReportHeader.Items.Add(dateText); }