>> I tried your workaround, it doesn't
>> Can you pass your code which you checked across.
>
>http://itext.sourceforge.net/src/com/lowagie/text/Cell.java
>http://itext.sourceforge.net/src/com/lowagie/text/Table.java
>
>public Cell(Properties attributes) {
>...
>String r = (String)attributes.remove(ElementTags.RED);
>String g = (String)attributes.remove(ElementTags.GREEN);
>String b = (String)attributes.remove(ElementTags.BLUE);
>if (r != null || g != null || b != null) {
>int red = 0;
>int green = 0;
>int blue = 0;
>if (r != null) red = Integer.parseInt(r);
>if (g != null) green = Integer.parseInt(g);
>if (b != null) blue = Integer.parseInt(b);
>setBorderColor(new Color(red, green, blue));
>}
>else if ((value = (String)attributes.remove(ElementTags.BORDERCOLOR)) != null) {
>setBorderColor(MarkupParser.decodeColor(value));
>}
>...
>}
>
>and the corresponding constructor in class Table.
OK, I will change my Question,
>> Can you pass your code which you checked across.
>
>http://itext.sourceforge.net/src/com/lowagie/text/Cell.java
>http://itext.sourceforge.net/src/com/lowagie/text/Table.java
>
>public Cell(Properties attributes) {
>...
>String r = (String)attributes.remove(ElementTags.RED);
>String g = (String)attributes.remove(ElementTags.GREEN);
>String b = (String)attributes.remove(ElementTags.BLUE);
>if (r != null || g != null || b != null) {
>int red = 0;
>int green = 0;
>int blue = 0;
>if (r != null) red = Integer.parseInt(r);
>if (g != null) green = Integer.parseInt(g);
>if (b != null) blue = Integer.parseInt(b);
>setBorderColor(new Color(red, green, blue));
>}
>else if ((value = (String)attributes.remove(ElementTags.BORDERCOLOR)) != null) {
>setBorderColor(MarkupParser.decodeColor(value));
>}
>...
>}
>
>and the corresponding constructor in class Table.
OK, I will change my Question,
Do you have any example, which create Table with border using XML. If you have please pass it to. Still I couldn't able to create Table with border using XML.
Can you help me overcome this issue?
Thanks & Regards
Samapth
My Coding
<!-- tagmap.xml -->
<tag name="paragraph" alias="PARA_LEFT_BLACK_10">
<attribute name="leading" value="11" />
<attribute name="size" value="10" />
<attribute name="align" value="Justify" />
</tag>
<tag name="paragraph" alias="PARA_LEFT_BLACK_10">
<attribute name="leading" value="11" />
<attribute name="size" value="10" />
<attribute name="align" value="Justify" />
</tag>
<tag name="table" alias="TABLE_BORDER_2COLS_25PCT">
<attribute name="columns" value="2" />
<attribute name="align" value="Left" />
<attribute name="width" value="25%" />
<attribute name="widths" value="50;50" />
<attribute name="cellpadding" value="1" />
<attribute name="cellspacing" value="0" />
<attribute name="offset" value="0" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<tag name="row" alias="ROW_BORDER">
<attribute name="horizontalalign" value="Left" />
<attribute name="verticalalign" value="Middle" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<tag name="cell" alias="CELL_BORDER_LEFT_MIDDLE">
<attribute name="horizontalalign" value="Left" />
<attribute name="verticalalign" value="Middle" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<tag name="cell" alias="CELL_BORDER_RIGHT_MIDDLE">
<attribute name="horizontalalign" value="Left" />
<attribute name="verticalalign" value="Middle" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<attribute name="columns" value="2" />
<attribute name="align" value="Left" />
<attribute name="width" value="25%" />
<attribute name="widths" value="50;50" />
<attribute name="cellpadding" value="1" />
<attribute name="cellspacing" value="0" />
<attribute name="offset" value="0" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<tag name="row" alias="ROW_BORDER">
<attribute name="horizontalalign" value="Left" />
<attribute name="verticalalign" value="Middle" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<tag name="cell" alias="CELL_BORDER_LEFT_MIDDLE">
<attribute name="horizontalalign" value="Left" />
<attribute name="verticalalign" value="Middle" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<tag name="cell" alias="CELL_BORDER_RIGHT_MIDDLE">
<attribute name="horizontalalign" value="Left" />
<attribute name="verticalalign" value="Middle" />
<attribute name="bordercolor" value="#000000"/>
</tag>
<!-- values.xml-->
<TABLE_BORDER_2COLS_25PCT>
<ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 1-3</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10> 70%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
<ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 1-3</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10> 70%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
<ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 4</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10> 90%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 4</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10> 90%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
<ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 5</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10>100%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 5</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10>100%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
<ROW_BORDER>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 6+</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10>105%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
</TABLE_BORDER_2COLS_25PCT>
<CELL_BORDER_LEFT_MIDDLE><PARA_LEFT_BLACK_10>Year 6+</PARA_LEFT_BLACK_10></CELL_BORDER_LEFT_MIDDLE>
<CELL_BORDER_RIGHT_MIDDLE><PARA_LEFT_BLACK_10>105%</PARA_LEFT_BLACK_10></CELL_BORDER_RIGHT_MIDDLE>
</ROW_BORDER>
</TABLE_BORDER_2COLS_25PCT>
Can you try this at your side & get back to me?
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
