コード例 #1
0
ファイル: RenderHtml.cs プロジェクト: mnisl/OD
		public void TableEnd(Table t, Row row)
		{
			string bookmark = t.BookmarkValue(this.r, row);
			if (bookmark != null)
				tw.WriteLine("</div>"); 
			tw.WriteLine("</table>");
			return;
		}
コード例 #2
0
ファイル: RenderHtml.cs プロジェクト: mnisl/OD
		// 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;
		}