Esempio n. 1
0
        public bool RectangleStart(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 == null ? -1 : 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;
        }
Esempio n. 2
0
 public void RectangleEnd(Rectangle rect, Row r)
 {
     tw.WriteLine("</tr></table>");
     string bookmark = rect.BookmarkValue(this.r, r);
     if (bookmark != null)
         tw.WriteLine("</div>");
     return;
 }