StaticColumns _StaticColumns;		// Static column headings for this grouping		
	
		public ColumnGrouping(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
		{
			_Height=null;
			_DynamicColumns=null;
			_StaticColumns=null;

			// Loop thru all the child nodes
			foreach(XmlNode xNodeLoop in xNode.ChildNodes)
			{
				if (xNodeLoop.NodeType != XmlNodeType.Element)
					continue;
				switch (xNodeLoop.Name)
				{
					case "Height":
						_Height = new RSize(r, xNodeLoop);
						break;
					case "DynamicColumns":
						_DynamicColumns = new DynamicColumns(r, this, xNodeLoop);
						break;
					case "StaticColumns":
						_StaticColumns = new StaticColumns(r, this, xNodeLoop);
						break;
					default:
						break;
				}
			}
			if (_Height == null)
				OwnerReport.rl.LogError(8, "ColumnGrouping requires the Height element to be specified.");

			if ((_DynamicColumns != null && _StaticColumns != null) ||
				(_DynamicColumns == null && _StaticColumns == null))
				OwnerReport.rl.LogError(8, "ColumnGrouping requires either the DynamicColumns element or StaticColumns element but not both.");
		}
Esempio n. 2
0
        StaticColumns _StaticColumns;   // Static column headings for this grouping

        public ColumnGrouping(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            _Height         = null;
            _DynamicColumns = null;
            _StaticColumns  = null;

            // Loop thru all the child nodes
            foreach (XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                {
                    continue;
                }
                switch (xNodeLoop.Name)
                {
                case "Height":
                    _Height = new RSize(r, xNodeLoop);
                    break;

                case "DynamicColumns":
                    _DynamicColumns = new DynamicColumns(r, this, xNodeLoop);
                    break;

                case "StaticColumns":
                    _StaticColumns = new StaticColumns(r, this, xNodeLoop);
                    break;

                default:
                    break;
                }
            }
            if (_Height == null)
            {
                OwnerReport.rl.LogError(8, "ColumnGrouping requires the Height element to be specified.");
            }

            if ((_DynamicColumns != null && _StaticColumns != null) ||
                (_DynamicColumns == null && _StaticColumns == null))
            {
                OwnerReport.rl.LogError(8, "ColumnGrouping requires either the DynamicColumns element or StaticColumns element but not both.");
            }
        }