Hi,
What is wrong here?
TextArea textArea = new TextArea(row["LongText"].ToString(), 30, curY + 3, 730, 11, Font.Helvetica, 11, TextAlign.Left);
do
{
currentPage.Elements.Add(textArea);
textArea = textArea.GetOverflowTextArea();
} while (textArea != null);
This does not add new line, it prints all lines in same TextArea. Therefore text is mess.
Copy Paste from Pdf reader
"Tehxits wish aic hlo snhgo luolndg g toe xmt uwlhtipicleh lsinheosu l(dT geoxt Amruelati)p.l eT hliinse iss (aT leoxntgA rleoan)g. tTehxits wish aic hlo snhgo luolndg g toe xmt uwlhtipicleh lsinheosu l(dT geoxt Amruelati)ple lines (TextArea). This is a long long
"
This should be:
"This is a long long text which should go multiple lines (TextArea). This is a long long text which should go multiple lines (TextArea). This is a long long text which should go multiple lines (TextArea). This is a long long text which should go multiple lines (TextArea)"
/murjan
GetOverflowTextArea
Re: GetOverflowTextArea
Support · Jul 31, 2007Hello Murjan,
You are adding the overflow TextArea to the same location as your original TextArea and that’s the reason you see text overlapping. Either add the overflow TextArea to new page or define new coordinates for adding the overflow TextArea as follows:
TextArea textArea = new TextArea( text, 5, 20, 215, 60, Font.TimesRoman, 10 );
// Create an overflow text area for the overflow text
TextArea overflowTextArea = textArea.GetOverflowTextArea(284, 20 );
page.Elements.Add( textArea );
page.Elements.Add( overflowTextArea );
Thanks,
ceTe Software Support Team
Re: GetOverflowTextArea
Forum member · Aug 12, 2007Hi,
Can get it work!
Where is the do loop?
Feel stupid!
/murjan
Re: GetOverflowTextArea
Support · Aug 13, 2007Hello Murjan,
The above code shows adding a textarea and the overflow textarea with different X, Y position to the same page. You can add the overflow in a do loop also without any problem. You will have to take care of the X, Y position to place the overflow textarea on the page. You can refer to the TextContinuation
topic on our help documentation.
Thanks,
ceTe Software Support Team.