first of all, if you have an urgent question,
post it to the mailinglist. It is safer, because
you don't depend on one person. FYI: I'm visiting
Barcelona in April, I won't be able to answer mails
during that week. 

RAMONRQ writes: 

> I want to use iText in my programs and I have encounter a difficult: 
> 
> I have a datasource (i.e. a jdbc ResultSet) and I want to process it 
> automatically by iText, but I don't know how can I represent a row of 
> the ResultSet.

That's would 90% of the applications using iText do.
They loop over a resultset and add cells to a table. 

> I need something like this: 
> 
> <person>
> <table>
> <listDataSource table-person>
>   <row>
>     <cell>table-person.name</cell>
>     <cell>table-person.address</cell>
>     <cell>table-person.debt</cell>
>   </row>
> </listDataSource>
> </table>
> <paragraph>TOTAL: sumAll(table-person.debt)</paragraph>
> </person>

Is this the result?
Do you mean you don't want to produce PDF but some XML?
Or do you want to convert this kind of XML into PDF?
It's not quite clear. 

> In other words: I need to specify a iteration over table-person because 
> I want to extract all the records and print it's information, but every 
> record is a collection of cols and I don't know how to extract the 
> column name or the column address.

I don't understand what you mean by 'every record is a
collection of cols'. In your example I see 1 table with 3 columns.
Pretty straightforward:
create a table with 3 colums, loop over the records
and add a cell for each of the 3 fields. 

> How can I do this with an automatic processing? 
> 
> If this can't do with iText, can I add a iText TAG to do this?
> How can I add a TAG to iText?

In what context? Are you talking about XML to PDF conversion?
iText doesn't have an iterator tag as in JSP.
I have a similar application where I use a tag
<myList /> 

Before letting iText do the conversion to PDF I parse
the XML and replace the myList-tag with a
<table>
 <row>
   <cell></cell>
   ...
 </row>
 ...
</table>
construction. 

> Another question:

You forgot your other question...

_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to