problem with inserting character _ and . in riche text box

edited May 2011 in FastReport 4.0
HI,
I tried to insert characters "[_____] inside riche text box but I get error "expression expected. how to fix to print [] as it is ?

thanks

Comments

  • edited 7:36PM
    Do you insert this text at design mode or at run-time?
    If on run-time then you may have no chance for succes - search forum for richEdit component.

    I tried to test your issue inserting this at design time and there was no error.
    But if you need to change the contents of RichEdit at run-time then try to use variables and expressions.

    I mean - insert in richEdit [MyVariable] and set this variable to whatever you need.
    You may declare var MyVariable :string at the very begining of your FR script of the report.
    Or you may use FR variables.

    Mick
  • edited May 2011
    at design time, FR think that I should place expression inside [] . I still get error. is there a solution to print square brackets ?
  • edited 7:36PM
    It is very strange case.
    Can you attach a sample FR3 file - I mean start new FR report with one band and similar richEdit you use on it.

    Mick
  • edited 7:36PM
    Well, ONLY now I got the meaning of your issue [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> If you need to use square brackets inside richEidt then change property ExpressionDelimiters. And set it to, for example[/img]{,} so FR will not recognize [,] the way it did before.

    Mick
  • edited 7:36PM
    test attached. press on preview button and you will see the error

    thanks
  • edited 7:36PM
    Have a look at attached file and mouse cursor within it.

    Mick
  • edited 7:36PM
    nice solution, thanks alot >

Leave a Comment