示例#1
0
 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>();
 }
示例#2
0
        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;
        }
示例#3
0
 private void PutBands(Page page, BandCollection bands)
 {
     foreach (var band in bands.Bands)
     {
         appendBand(page, band);
     }
 }