An example as pseudocode:

Start
open connection
execute query

create PdfPtable

while data in resultset
   create PdfPCell
   add field of record to cell

   ...................................     //repeat the cell creation for
every field you want to add into table

   add cell(s) to table
do
add table to document

End


Same pseudocode for Array.


2008/7/17 sumanth divvela <[EMAIL PROTECTED]>:

> Hi,
>
> Thank you for your response.
> I have gone through the examples given in "iText in Action" but here my
> requirement is to read data from database and need display in the tables.
>
> One more question is it possible to pass Array object to the table? because
> I don't know how many records I have in my database.
>
> On Thu, Jul 17, 2008 at 7:10 PM, Paulo Soares <[EMAIL PROTECTED]> wrote:
>
>> That's quite simple to do with tables. You have lots of examples in the
>> book "iText in Action".
>>
>> Paulo
>>
>> > -----Original Message-----
>> > From: [EMAIL PROTECTED]
>> > [mailto:[EMAIL PROTECTED] On
>> > Behalf Of Sumanth Divvela
>> > Sent: Thursday, July 17, 2008 1:18 PM
>> > To: [email protected]
>> > Subject: [iText-questions] new to iText need urgent response
>> > (Consider thismail forgot to attach document)
>> >
>> > Dear,
>> >
>> >
>> >
>> > I am new to iText for preparing PDF files. I have some
>> > requirement to generate PDF format for one report. I am
>> > trying to implement the report but I need some clarification
>> > from you guys, i.e. please find the attached document file
>> > that contains my requirement report screen shot and could you
>> > please let me know whether this is possible to implement
>> > using iText or not.
>> >
>> >
>> >
>> > If is possible could please give some solutions so that I can
>> > get into my work.
>>
>>
>> Aviso Legal:
>> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
>> informação confidencial ou legalmente protegida. A incorrecta transmissão
>> desta mensagem não significa a perca de confidencialidade. Se esta mensagem
>> for recebida por engano, por favor envie-a de volta para o remetente e
>> apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o
>> destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.
>>
>> Disclaimer:
>> This message is destined exclusively to the intended receiver. It may
>> contain confidential or legally protected information. The incorrect
>> transmission of this message does not mean the loss of its confidentiality.
>> If this message is received by mistake, please send it back to the sender
>> and delete it from your system immediately. It is forbidden to any person
>> who is not the intended receiver to use, distribute or copy any part of this
>> message.
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> iText-questions mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Do you like iText?
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>> Or leave a tip: https://tipit.to/itexttipjar
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to