Exemplo n.º 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>();
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 private void PutBands(Page page, BandCollection bands)
 {
     foreach (var band in bands.Bands)
     {
         appendBand(page, band);
     }
 }