I have a similar kind of requirement to create a table using dynamic data from database and putting that into the template XML.
I have an XML template as follows: <itext> <table border="0" width="100%" height="100" columns="2" size="10" cellpadding="1.0" cellspacing=".5" align="center" > <row> <cell horizontalalign="center" colspan="2" ><pname/></cell> </row> </table> </itext> I want to generate more rows dynamically as the database table has. I have given the attributes for the cell in the template itself. Based on these specifications <pname/> tag should be populated dynamically from one of the database table fields. Sample code would be greatly appreciated John Pacino wrote: > > Is there a way generate a table using dynamic data from a database and > inserting it into a template XML. I am currently using the XmlPeer to > generate custom taglibs which are passed to the parser in a HashMap > > XmlParser.parse(document, "unauthTx.xml", taglibs); > > I need to generate a table then insert it into a specific spot in the PDF > file. I have been using XmlPeer for all other custom tags, Is there a way > to use XmlPeer(ElementTags.TABLE) to generate a table? > > Thanks, > John > > > > --------------------------------- > Yahoo! Photos Showcase holiday pictures in hardcover > Photo Books. You design it and well bind it! > -- View this message in context: http://www.nabble.com/Generate-Dynamic-table-when-using-XML-to-PDF-tf939742.html#a8176283 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
