Exemplo n.º 1
0
		public void TableEnd(Table t, Row row)
		{
			string bookmark = t.BookmarkValue(this.r, row);
			if (bookmark != null)
				tw.WriteLine("</div>"); 
			tw.WriteLine("</table>");
			return;
		}
Exemplo n.º 2
0
		// Tables					// Report item table
		public bool TableStart(Table t, Row row)
		{
			string cssName = CssAdd(t.Style, t, row);	// get the style name for this item

			// Determine if report custom defn want this table to be sortable
			if (IsTableSortable(t))
			{
				this.bScriptTableSort = true;
			}

			string bookmark = t.BookmarkValue(this.r, row);
			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 = t.WidthInPixels(this.r, row);
			if (width <= 0)
				tw.WriteLine("<table id='{0}'>", cssName);
			else
				tw.WriteLine("<table id='{0}' width={1}>", cssName, width);

			return true;
		}