CR-Formula-Field with HTML text interpretation
Posted on 2008-02-07
how can I format a formula field so that I can use html tags?
I have found the following comments in your db (the thread reffered to VS 2003 (CR 9)):
04.05.2005 at 07:26AM PDT, ID: 13707522
create the formula field on the crystal report and leave it blank, and then add this as the code in your .net Code
crFormulaFieldDefinition.Text = "Replace ('This is how to===place carriage returns===in a text object','===' ,chr(13))"
04.05.2005 at 07:56AM PDT, ID: 13707855
Another option is to replace the === with <BR> and make sure you've formatted the formula field to use HTML text interpretation. The advantage to this approach is that it allows you to also use other HTML formatting tags if you want to use bold text, italics, etc. If you have no interest in ever doing that then stick with chr(13).
I can only find "none" and "RTF-Text", but not "html text".
If only RTF-Text is available, what do I have to put it instead of
'Is it an <b>importand</b> or a <i>strange</i> topic?<br>...'
Best wishes and thanks in advance