Ejemplo n.º 1
0
 public bool RectangleStart(RDL.Rectangle rect, Row r)
 {
     return true;
 }
Ejemplo n.º 2
0
 public void RectangleEnd(RDL.Rectangle rect, Row r)
 {
 }
Ejemplo n.º 3
0
        public bool RectangleStart(RDL.Rectangle rect, Row r)
        {
            bool rc=true;
            switch (rect.DataElementOutput)
            {
                case DataElementOutputEnum.NoOutput:
                    rc = false;
                    break;
                case DataElementOutputEnum.Output:
                    if (rowstart != null)		// In case no items in row are visible
                    {							//   we delay until we get one.
                        tw.Write(rowstart);
                        rowstart = null;
                    }
                    PushContainer(rect.DataElementName);
                    break;
                case DataElementOutputEnum.Auto:
                case DataElementOutputEnum.ContentsOnly:
                default:
                    break;
            }

            return rc;
        }
Ejemplo n.º 4
0
 public void RectangleEnd(RDL.Rectangle rect, Row r)
 {
     if (rect.DataElementOutput != DataElementOutputEnum.Output)
         return;
     PopContainer(rect.DataElementName);
 }
Ejemplo n.º 5
0
		public void RectangleEnd(RDL.Rectangle rect, Row r)
		{
			tw.WriteLine("</tr></table>");
			string bookmark = rect.BookmarkValue(this.r, r);
			if (bookmark != null)
				tw.WriteLine("</div>"); 
			return;
		}
Ejemplo n.º 6
0
		public bool RectangleStart(RDL.Rectangle rect, Row r)
		{
			string cssName = CssAdd(rect.Style, rect, r);	// get the style name for this item

			string bookmark = rect.BookmarkValue(this.r, r);
			if (bookmark != null)
				tw.WriteLine("<div id=\"{0}\">", bookmark);		// can't use the table id since we're using for css style

			// Calculate the width of all the columns
			int width = rect.Width.PixelsX;
			if (width < 0)
				tw.WriteLine("<table id='{0}'><tr>", cssName);
			else
				tw.WriteLine("<table id='{0}' width={1}><tr>", cssName, width);

			return true;
		}