Then what you need to do is while creating the table, pay attention to the
size of the cells and calculate based on the page size and do your own page
breaks and cell manipulation.
Glen Hamel
Auric Networks Canada, Inc.
570 Orwell Street, Unit 1
Mississauga, Ontario
L5A 3V7
Phone : 905.361.7621 x 204
Cell : 647.212.8742
Fax : 905.274.3912
Email : [email protected] <mailto:[email protected]>
<http://www.auricnet.ca/> http://www.auricnet.ca
From: Deepa Thakur [mailto:[email protected]]
Sent: Wednesday, September 09, 2009 8:19 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] writer.getPageNumber() not returning correct
value
Its not possible for me to add the table to the document before the table
has any data. As this table is getting generated at the run time and
displayed in pdf doc.
want to pick up the page number and put some conditions on it for data
placement in that table.
Thanks.
On Wed, Sep 9, 2009 at 5:12 PM, 1T3XT info <[email protected]> wrote:
Deepa Thakur wrote:
> Hi,
> I'm using writer.getPageNumber() in my file to get the current page
> number but its returing the same value though in actual pdf the data is
> getting written to different pages. I have used table to display the
> data which i'm fetching from database. In one of the mail threads on
> iText i read that i can only get the current page number after i add the
> table to document.
Of course, that's elementary logic!
> But i want to pick up the pagenumber while the data
> is getting added into table
That's impossible.
> as i'm adding the table to document once the
> whole data is processed.
Add it BEFORE the data is processed.
--
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/
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.87/2356 - Release Date: 09/09/09
06:53:00
------------------------------------------------------------------------------
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/