Okay, simple question. How do you peform line breaks within a table cell, label or textarea?
Line Breaks
Re: Line Breaks
Support · Mar 19, 2007Hello,
You can add the line breaks using the "\n" escape sequence. Following is the sample code snippet:
C# Code:
string text = "Hello\nWorld";
Label label = new Label( text, 0, 0, 504, 100, Font.Helvetica, 18, TextAlign.Center );
VB.Net Code:
Dim Text As String = "Hello" & vbCrLf & "World"
Dim MyLabel As Label = New Label(Text, 0, 0, 504, 100, Font.Helvetica, 18, TextAlign.Center)
Thanks,
ceTe Software Support Team
Re: Line Breaks
Forum member · Mar 19, 2007Great thanks for your help!
Jason
Re: Line Breaks
Forum member · Feb 12, 2018The vbcrlf doesn't seem to work for me.
For Each line As String In MailingAddress
vars.newdoc.Form.Fields("Address").Value = line & vbCrLf
Next
What I get is just the last line of the address.
Re: Line Breaks
Support · Feb 13, 2018Hello,
Can you please send over the following details so [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into it further?
1. Source PDF used for merging and filling.
2. Code sample.
3. Exact version and build number of the DynamicPDF DLL file used in the application. You can get this information in DLL references properties (Version and Description fields) in Visual Studio.
4. Output PDF.
Thanks,
ceTe Software Support Team.
Re: Line Breaks
Support · Feb 16, 2018Hello,
When setting PDF form field values with multi-line strings containing vbcrlf, you would need to make sure that the form field has multi-line property enabled. You should be able to set this multi-line property in whatever tool (like Adobe Acrobat Professional) that was used to create the PDF form.
Thanks,
ceTe Software Support Team.