Anyone know how to create a new line in an iTextSharp PDF document? I have the following so far for a cell in an iTextSharp.text.Table, but it just outputs one long string:
Dim phrase1 As New Phrase("\n")
Dim phrase2 As New Phrase()
phrase2.Add(invCust_BusinessName)
phrase2.Add(phrase1)
phrase2.Add(invCust_FirstName + " " + invCust_Surname)
phrase2.Add(phrase1)
phrase2.Add(invCust_MailingAddress)
phrase2.Add(phrase1)
phrase2.Add(invCust_City + " " + invCust_State + " " + invCust_PostCode)
phrase2.Add(phrase1)
phrase2.Add(invCust_Country)
aspnewbieper...
Member
466 Points
245 Posts
iTextSharp PDF NewLine
Dec 10, 2008 05:55 AM|LINK
Anyone know how to create a new line in an iTextSharp PDF document? I have the following so far for a cell in an iTextSharp.text.Table, but it just outputs one long string:
Dim phrase1 As New Phrase("\n") Dim phrase2 As New Phrase() phrase2.Add(invCust_BusinessName) phrase2.Add(phrase1) phrase2.Add(invCust_FirstName + " " + invCust_Surname) phrase2.Add(phrase1) phrase2.Add(invCust_MailingAddress) phrase2.Add(phrase1) phrase2.Add(invCust_City + " " + invCust_State + " " + invCust_PostCode) phrase2.Add(phrase1) phrase2.Add(invCust_Country)Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: iTextSharp PDF NewLine
Dec 10, 2008 06:37 AM|LINK
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
aspnewbieper...
Member
466 Points
245 Posts
Re: iTextSharp PDF NewLine
Dec 11, 2008 01:13 AM|LINK
Thanks Mike! You were spot on, it works perfect :-)