public PageFooter(PageFooter pagefooter) : base(pagefooter) { _bautosequence = pagefooter.bAutoSequence; }
protected override Section AddALoacleSection(XmlElement xec) { Section section = null; string type = xec.GetAttribute("Type"); switch (type.ToLower()) { case "printpagetitle": section = new PrintPageTitle(); AddOtherControl(xec, section); break; case "printpagesummary": section = new PrintPageSummary(); AddOtherControl(xec, section); break; case "pageheader": section = new PageHeader(); AddOtherControl(xec, section); break; case "pagefooter": section = new PageFooter(); AddOtherControl(xec, section); break; case "reportheader": section = new ReportHeader(); AddHeaderControl(xec, section); break; case "reportsummary": bool baddwhendesign = false; if (xec.HasAttribute("bAddWhenDesign")) { baddwhendesign = bool.Parse(xec.GetAttribute("bAddWhenDesign")); } if (!baddwhendesign) { section = new PageFooter(); AddOtherControl(xec, section); } else { section = new ReportSummary(); AddOtherControl(xec, section); (section as ReportSummary).InitVisibleWidth(); } section.Name = ""; break; case "griddetail": section = new GridDetail(); AddDetailControl(xec, section); break; } if (section != null) { ConvertFromLocaleInfo(xec, section); _report.Sections.Add(section); //section.Name = type; } return(section); }