Hi Bruno,

Thanks for your reply. PdfPTable.writeSelectedRows is the method that i have 
tried:
    PdfPTable.writeSelectedRows(0, -1, 100, 300, cb);

But I have over 1000 rows of data in the table, and that method prints out 
all the data in one page only. Actually only print out tens of rows, the 
left rows are cut off at the bottom of the page.

ColumnText seems like a correct class that i can use. I will play with that.

Ruitao

>From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
>Reply-To: Post all your questions about iText here 
><[email protected]>
>To: Post all your questions about iText here 
><[email protected]>
>Subject: Re: [iText-questions] Table position
>Date: Fri, 27 Oct 2006 10:26:38 +0200
>MIME-Version: 1.0
>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by 
>bay0-mc9-f1.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri, 27 
>Oct 2006 01:27:16 -0700
>Received: from sc8-sf-list2-new.sourceforge.net (unknown [10.3.1.94])by 
>sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 38C181275C; Fri, 27 Oct 
>2006 01:27:15 -0700 (PDT)
>Received: from sc8-sf-mx2-b.sourceforge.net 
>([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list2-new.sourceforge.net 
>with esmtp (Exim 4.43)id 1GdN3Y-0006ZE-3o for 
>[email protected];Fri, 27 Oct 2006 01:27:12 -0700
>Received: from ugmailsa.ugent.be ([157.193.49.116] helo=cedar.ugent.be)by 
>mail.sourceforge.net with esmtp (Exim 4.44) id 1GdN3W-0007y7-S9for 
>[email protected];Fri, 27 Oct 2006 01:27:13 -0700
>Received: from localhost (gorilla.ugent.be [157.193.49.20])by 
>cedar.ugent.be (Postfix) with ESMTP id 1C5EC2A4154for 
><[email protected]>;Fri, 27 Oct 2006 10:27:01 +0200 
>(CEST)
>Received: from cedar.ugent.be ([157.193.49.116])by localhost 
>(gorilla.UGent.be [157.193.43.11]) (amavisd-new,port 10024)with ESMTP id 
>20452-03 for <[email protected]>;Fri, 27 Oct 2006 
>10:27:00 +0200 (CEST)
>Received: from tarzan.ugent.be (tarzan.ugent.be [157.193.40.45])by 
>cedar.ugent.be (Postfix) with ESMTP id 6EECA2A415Cfor 
><[email protected]>;Fri, 27 Oct 2006 10:27:00 +0200 
>(CEST)
>Received: from [157.193.39.147] (ca60c060.ugent.be [157.193.39.147])by 
>tarzan.ugent.be (Postfix) with ESMTP id 15DB08BB43for 
><[email protected]>;Fri, 27 Oct 2006 10:27:00 +0200 
>(CEST)
>X-Message-Info: LsUYwwHHNt2180E+yB0tY87F9cXurRLEzAL21hpSyH4=
>User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
>References: <[EMAIL PROTECTED]>
>X-Virus-Scanned: by UGent DICT
>X-Spam-Status: No, hits=-5.832 tagged_above=-999 
>required=6.31tests=ALL_TRUSTED, AWL, BAYES_00
>X-Spam-Level: X-Spam-Score: 1.0 (+)
>X-Spam-Report: Spam Filtering performed by sourceforge.net.See 
>http://spamassassin.org/tag/ for more details.Report problems 
>tohttp://sf.net/tracker/?func=add&group_id=1&atid=2000011.0 
>FORGED_RCVD_HELO       Received: contains a forged HELO
>X-BeenThere: [email protected]
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: Post all your questions about iText 
>here<itext-questions.lists.sourceforge.net>
>List-Unsubscribe: 
><https://lists.sourceforge.net/lists/listinfo/itext-questions>, 
><mailto:[EMAIL PROTECTED]>
>List-Archive: 
><http://sourceforge.net/mailarchive/forum.php?forum=itext-questions>
>List-Post: <mailto:[email protected]>
>List-Help: 
><mailto:[EMAIL PROTECTED]>
>List-Subscribe: 
><https://lists.sourceforge.net/lists/listinfo/itext-questions>, 
><mailto:[EMAIL PROTECTED]>
>Errors-To: [EMAIL PROTECTED]
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 27 Oct 2006 08:27:16.0278 (UTC) 
>FILETIME=[B5DBF560:01C6F9A1]
>
>Ruitao Duan wrote:
> > Hi,
> >
> > I am trying to create a pdf file using iText which has a half page of 
>text,
> > lines, etc, then followed by  thousands of rows of data in a table. 
>After
> > that, it has some other lines of text, lines, etc.
>
>I haven't read the complete question, but I would suggest that
>you use ColumnText for the half page of text. You can also use
>ColumnText for the half page with the tables, but to answer your
>question about positioning a PdfPTable: that can be done with
>PdfPTable.writeSelectedRows
>br,
>Bruno
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job 
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>iText-questions mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/itext-questions

_________________________________________________________________
Use your PC to make calls at very low rates 
https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to