Deepa Thakur wrote:
> Thanks for your reply. Right now in the code i'm creating 1 table and 
> adding headers to it. Also i've put the setHeaderRows = 1 so they will 
> repeat on each page.

Not if you use the methods of the LargeElement interface.

> I understood my mistake i should add the table to document 1st then only 
> i'll be able to get the current pagenumber.
> But in my case as it is only a single table, in which i'm adding header 
> rows then created one more table & put that table in one cell & adding 
> that cell to main table again.
> Once its done adding the main table to document.
> If I add that main table as you suggested, the same data is getting 
> added multiple times, even the headers are getting repeated.

Not if you are using the methods of the LargeElement interface.

Or you could separate the headers from the table, and use ColumnText to 
create the lay-out. I would go for that option; it gives you a lot more 
freedom.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to