Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Appending text to a section
posted

I have a report which I am building based on a custom markup system which is used to apply styles to text. I am currently looping through the markup and applying styles to sections based upon tags. I create a section which is to contain all of my text (which is already formatted other than font styles), then add the text to it using the following method:

Private Sub addText(Section As ISection, text As String, fontStyle As Infragistics.Documents.Reports.Graphics.Font)
Dim newText As IText
newText = Section.AddText()
newText.Style.Font = fontStyle
newText.AddContent(text)
End Sub

The main problem with this is that this doesn't append the text to the end of the last line, , but instead starts a 'new line' within the report. Is there any way to add the newly styled text without starting a new line, instead appending it to the text that has already been written?

Parents Reply Children
No Data