Replace characters with Line feeds
Posted: Fri Nov 25, 2011 5:39 pm
Hello
I`m trying to create a function, that replaces a substring of characters, with a line feed, so I can display a multiline field in the report. I have created something like this:
Public Sub Text98__GetValue(ByVal sender As Object, ByVal e As Stimulsoft.Report.Events.StiGetValueEventArgs)
cEnter = Chr(13) & Chr(10)
e.Value = ToString(sender, Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace("hola//mundo","//",cEnter, true))
End Sub
The problem is, that it displays:
hola"&Microsoft.VisualBasic.ChrW(13)mundo
As it not replacing with the chr(30) and chr(10) characters that makes the enter. Any suggest?
Regards.
I`m trying to create a function, that replaces a substring of characters, with a line feed, so I can display a multiline field in the report. I have created something like this:
Public Sub Text98__GetValue(ByVal sender As Object, ByVal e As Stimulsoft.Report.Events.StiGetValueEventArgs)
cEnter = Chr(13) & Chr(10)
e.Value = ToString(sender, Stimulsoft.Report.Dictionary.StiFunctionsStrings.Replace("hola//mundo","//",cEnter, true))
End Sub
The problem is, that it displays:
hola"&Microsoft.VisualBasic.ChrW(13)mundo
As it not replacing with the chr(30) and chr(10) characters that makes the enter. Any suggest?
Regards.