I want to split a particular string with a slash (/) operator and use the output in the textbox. The first part needs to be formatted in bold and the other in italic. The string I want to split is "International Delivery Note / Note de livraison internationale" .
How should I do this in the telerik report designer for visual studio ?
7 Answers, 1 is accepted
The Split function returns a string array. You can send this string array to a User Function or to the Join(separator, strings) function which accepts an array. Note that it is not possible to use regular and italic text inside a single TextBox item. This can be done only inside an HtmlTextBox item which accepts HTML as its value. Thus, you can create your own user function which accepts the initial string and returns the formatted string in HTML.
Please find attached a small sample demonstrating how to use the HtmlTextBox and the Split function to achieve the desired result. During design-time there will be a parse error, since we are mixing expressions with HTML, so don't mind that. Run the report to see the actual result.
Sorry, we use an older version of Telerik Reporting. I cannot open the attached file. May I ask you to type your code here?
Please find the report definition attached as a plain text file. Note that you can also download a Trial license for the latest version of Telerik Reporting and open the report with the report designer.
Thank you very much for your help.