Creating New Line in a TextBox

edited August 2012 in FastReport .NET
This should be really simple but I cannot figure out how to do it.
Basically I want to display an existing database field that contains some text and display it in a textbox.
The text is something like "Line 1"<br/>Line 2"

I want the <br/> to be a new line in the text box but cannot figure out how to force a Carriage return / new line

Can anyone help ?

Gus

Comments

  • Jo??o PauloJo??o Paulo Brasil
    edited 4:27AM
    Hi,
    Try to replace "<br/>" by char(10) + char(13) at your sql and set the property "Can Grow" to true in the field and band.
  • edited 4:27AM
    Sorry for the delay in replying but have been manually updating reports !
    The solution is so simple so thankyou for that.

    For any one else who reads this just use the SQL Command which will look something like UPDATE TableX SET Field = REPLACE(@InputVariable, '
    ', CHAR(10) + CHAR(13))

    Gus

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.