1
Vote

the table tag is not working

description

first of all, it is really great work, and secondly, the only complain I have is that I cannot get the table tag working!, is there any updated dll for that, or is has to do with my xml file, any help?
<pagedef pagesize="letter" pageorientation="portrait" fontsize="10" margin_left="20" margin_right="20" margin_top="20" margin_botton="20">
<table width="100%" cellpadding="0.5" cellspacing="0.5" widths="30;70" borderwidth="1.0" left="false" right="false" top="false" bottom="false" red="0" green="0" blue="0"> <tablehead> <tablerow> <tablecell> <font fontsize="10" fonttype="Arial"> <textbox width="25%" /> <textbox width="50%" text="table testing" align="center" /> <textbox width="25%" /> </font> </tablecell> </tablerow> </tablehead> </table> </pagedef>

comments

zzmarmoh wrote May 23, 2013 at 4:19 PM

correction for my xml code, I pasted it wrong, with that being said, it doesnot work for me

<pagedef pagesize="letter" pageorientation="portrait" fontsize="10" margin_left="20" margin_right="20" margin_top="20" margin_botton="20">
<table width="100%" cellpadding="0.5" cellspacing="0.5" widths="30;70" borderwidth="1.0" left="false" right="false" top="false" bottom="false" red="0" green="0" blue="0"> <tablehead> <tablerow> <tablecell> <font fontsize="10" fonttype="Arial"> <textbox width="25%" /> <textbox width="50%" text="table testing" align="center" /> <textbox width="25%" /> </font> </tablecell> </tablerow> </tablehead> </table> </pagedef>

wrote May 23, 2013 at 4:20 PM

cmwong wrote Jun 5, 2013 at 8:28 AM

Hi zzmarmoh,

Please read the doc under SourceCode -> Moon.PDFTemplateItextSharp
example.xml
PDFTemplate.xml

The table tag is not having same attribute as html table.

it only support these attribute
table
tablewidth      float       400
cellperrow      int         3
cellwidth       float[]     2, 1, 1
                            cell0=200, cell1=100, cell2=100

#width will supersede tablewidth
width           percentage