예제 #1
0
 public bool RectangleStart(RDL.Rectangle rect, Row r)
 {
     return true;
 }
예제 #2
0
 public void RectangleEnd(RDL.Rectangle rect, Row r)
 {
 }
예제 #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;
        }
예제 #4
0
 public void RectangleEnd(RDL.Rectangle rect, Row r)
 {
     if (rect.DataElementOutput != DataElementOutputEnum.Output)
         return;
     PopContainer(rect.DataElementName);
 }
예제 #5
0
파일: RenderHtml.cs 프로젝트: mnisl/OD
		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;
		}
예제 #6
0
파일: RenderHtml.cs 프로젝트: mnisl/OD
		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;
		}