Im trying to line break within a formattedtextarea obj and I have had limited success other than changing the width of the formattedtextarea and forcing the line break. \r\n is not working as expected.
sample code snippet
ceTe.DynamicPDF.PageElements.FormattedTextArea copyblock_2 = new ceTe.DynamicPDF.PageElements.FormattedTextArea("", 377, 423, 210, 40, styleurl);
copyblock_2.Text = this.CompanyName + " will submit your invoices\r\n" + "to the really cool program.";
In advance, thank you for your time.
Line Break within formattedtextarea
Re: Line Break within formattedtextarea
Support · Apr 30, 2008Hello,
We are able to add the line break without any problem. Please make sure that you are using the very latest build DLL files from our web site.
Following is the sample code we used without any problem:
Document document =new Document();
Page page =new Page();
ceTe.DynamicPDF.PageElements.FormattedTextArea copyblock_2 = new ceTe.DynamicPDF.PageElements.FormattedTextArea("", 0, 423, 210, 200,FontFamily.Helvetica,14,true);
copyblock_2.Text = "Cete software private\r\n Limited " + " will submit your invoices " + "to the really cool program.";
page.Elements.Add(copyblock_2);
document.Pages.Add(page);
document.DrawToWeb();
Thanks,
ceTe Software Support Team