We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TextParagraph inserts only 4 lines for long texts

Hello,
I always get only 4 lines, no matter how long the inserted text is. What am I doing wrong? Can anyone help me?

Here’s the code (VB):

Dim paragraph As New TextParagraph()
paragraph.Rectangle = New Rectangle(100, 400, 300, 700)
paragraph.FormattingOptions.WrapMode = TextFormattingOptions.WordWrapMode.ByWords
paragraph.VerticalAlignment = VerticalAlignment.Top
Dim tf = New TextFragment(“the quick brown fox jumps over the lazy dog 1 the quick brown fox jumps over the lazy dog 2 the quick brown fox jumps over the lazy dog 3 the quick brown fox jumps over the lazy dog4 the quick brown fox jumps over the lazy dog 5”)
paragraph.AppendLine(tf)
Dim TextBuilder = New TextBuilder(Page)
TextBuilder.AppendParagraph(paragraph)

@Will_Kardel

Would you kindly make sure to use a valid license before using any API method? In case you do not have one, please consider applying for 30-days free temporary license. Please let us know in case you still face any issue.