Paulo,
No sarcasm intended, but that's what I was thinking too. I WANT the long text in the cells to wrap, but I can't seem to wake it happen. I'm calling cell.setNoWrap(false), but when I check the value (cell.noWrap()) it is always true. How can I effectively set it to false, so that the text in a cell WILL wrap?
I am trying to output to PDF and HTML. I want the tables in the HTML output to be a fixed width, but the nowrap=true is always making the tables wider than intended. In the PDF output, it is just truncating the text. Output to RTF wraps the long text in a cell.
Thanks,
Thomas
Thomas C. Moorer, Jr.
email: [EMAIL PROTECTED]
Message: 2
Date: Mon, 21 Aug 2006 21:31:57 +0100
From: "Paulo Soares" <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] Cell.NoWrap?
To: "Post all your questions about iText here"
<[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
The nowrap doesn't make much sense in PDF if you consider that the page
can't grow forever as in HTML.
Paulo
----- Original Message -----
From: "Thomas Moorer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, August 21, 2006 4:33 PM
Subject: [iText-questions] Cell.NoWrap?
> Hi,
>
> I have a table cell (com.lowagie.text.Cell) that has text that is wider
> than the width of the cell. I would like for the text to wrap within the
> cell and the cell height to grow to accomodate the new lines within the
> cell. Right now, the text is truncating instead of wrapping. I did some
> searching in the mailing list and this issue has been raised before. I
> checked the souce for my version 1.4.3 and here is what I found:
>
> /**
> * Get nowrap.
> *
> * @return a value
> */
>
> public boolean noWrap() {
> return maxLines == 1;
> }
>
> /**
> * Set nowrap.
> *
> * @param value the new value
> */
>
> public void setNoWrap(boolean value) {
> maxLines = 1;
> }
>
> Correct me if I'm wrong, but it doesn't look like you can modify the value
> of noWrap. If that's true, and it looks like it is, then is it possible to
> wrap text in a table cell using com.lowagie.text.Cell in a
> com.lowagie.text.Table? If so, how? If not, when or if do with this
> functionality be implemented? Are there any plans to do this? It seems to
> me that wrapping long text in a cell is fundamental functionality.
>
> Thanks,
> Thomas
>
> Thomas C. Moorer, Jr.
> email: [EMAIL PROTECTED]
>
>
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> 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
>
No sarcasm intended, but that's what I was thinking too. I WANT the long text in the cells to wrap, but I can't seem to wake it happen. I'm calling cell.setNoWrap(false), but when I check the value (cell.noWrap()) it is always true. How can I effectively set it to false, so that the text in a cell WILL wrap?
I am trying to output to PDF and HTML. I want the tables in the HTML output to be a fixed width, but the nowrap=true is always making the tables wider than intended. In the PDF output, it is just truncating the text. Output to RTF wraps the long text in a cell.
Thanks,
Thomas
email: [EMAIL PROTECTED]
Message: 2
Date: Mon, 21 Aug 2006 21:31:57 +0100
From: "Paulo Soares" <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] Cell.NoWrap?
To: "Post all your questions about iText here"
<[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original
The nowrap doesn't make much sense in PDF if you consider that the page
can't grow forever as in HTML.
Paulo
----- Original Message -----
From: "Thomas Moorer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, August 21, 2006 4:33 PM
Subject: [iText-questions] Cell.NoWrap?
> Hi,
>
> I have a table cell (com.lowagie.text.Cell) that has text that is wider
> than the width of the cell. I would like for the text to wrap within the
> cell and the cell height to grow to accomodate the new lines within the
> cell. Right now, the text is truncating instead of wrapping. I did some
> searching in the mailing list and this issue has been raised before. I
> checked the souce for my version 1.4.3 and here is what I found:
>
> /**
> * Get nowrap.
> *
> * @return a value
> */
>
> public boolean noWrap() {
> return maxLines == 1;
> }
>
> /**
> * Set nowrap.
> *
> * @param value the new value
> */
>
> public void setNoWrap(boolean value) {
> maxLines = 1;
> }
>
> Correct me if I'm wrong, but it doesn't look like you can modify the value
> of noWrap. If that's true, and it looks like it is, then is it possible to
> wrap text in a table cell using com.lowagie.text.Cell in a
> com.lowagie.text.Table? If so, how? If not, when or if do with this
> functionality be implemented? Are there any plans to do this? It seems to
> me that wrapping long text in a cell is fundamental functionality.
>
> Thanks,
> Thomas
>
> Thomas C. Moorer, Jr.
> email: [EMAIL PROTECTED]
>
>
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------- 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
