public Report() { ImageCollection = new Hashtable(); Expressions = new Collection<Expression>(); Variables = new Dictionary<string,Variable>(); Groups = new ArrayList(); Fields = new Collection<Field>(); Summary = new BandCollection(); PageFooter = new BandCollection(); Detail = new BandCollection(); PageHeader = new BandCollection(); ReportHeader = new BandCollection(); PageTitle = new BandCollection(); Fonts = new List<Font>(); }
private static BandCollection ParseBands(XmlReader reader, string endTag, Report report) { var bands = new BandCollection(); while (reader.Read()) { if (reader.Name.Equals(endTag) && (reader.NodeType == XmlNodeType.EndElement)) break; if (reader.Name == "Band" && reader.NodeType == XmlNodeType.Element) { var band = new Band(XmlConvert.ToInt16(reader.GetAttribute("height"))) {parent = report}; bands.Add(band); ParseBand(reader, band, report); } } return bands; }
private void PutBands(Page page, BandCollection bands) { foreach (var band in bands.Bands) { appendBand(page, band); } }