Hi Ng,
i have two tables: A and B.
I want Table A with no borders but B with simple borders. Is this
impossible because the border settings from table A overwrite the
bordersettings of the table B?
I try it on this way:
iTextSharp.text.Table table = new
iTextSharp.text.Table(1);
table.BorderWidth = 0;
table.Border = iTextSharp.text.Rectangle.NO_BORDER;
table.DefaultCellBorder = 0;
table.BorderColor = iTextSharp.text.Color.YELLOW;
table.WidthPercentage = 100;
iTextSharp.text.Cell cell = new Cell("outer row 1");
cell.VerticalAlignment =
iTextSharp.text.Cell.ALIGN_MIDDLE;
cell.HorizontalAlignment =
iTextSharp.text.Cell.ALIGN_CENTER;
cell.UseAscender = true;
table.AddCell(cell);
// table in table in table
---------------------------------------------------
iTextSharp.text.Table tableOuter = new
iTextSharp.text.Table(1);
tableOuter.BorderWidth = 1;
tableOuter.Border = iTextSharp.text.Rectangle.LEFT_BORDER |
iTextSharp.text.Rectangle.RIGHT_BORDER |
iTextSharp.text.Rectangle.TOP_BORDER |
iTextSharp.text.Rectangle.BOTTOM_BORDER;
tableOuter.DefaultCellBorder = 1;
tableOuter.BorderColor = iTextSharp.text.Color.RED;
tableOuter.WidthPercentage = 50;
tableOuter.AddCell("inner row 1");
tableOuter.AddCell("inner row 2");
tableOuter.AddCell("inner row 3");
table.InsertTable(tableOuter);
The result is that i see only a line OVER the inner lines. I miss the
frame border on the left, right, bottom. I suppose the outer table
border settings overwrite this.
Am i on the wrong way to implement this? Thanks.
--
Greetings
Roland Müller
Fachinformatiker | Neue Medien
===================================================================
Flad & Flad Communication GmbH
Thomas-Flad-Weg 1
D-90562 Heroldsberg
T +49 9126 275 346
F +49 9126 275 275
[EMAIL PROTECTED]
www.flad.de
===================================================================
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions