Problem with complex strings

jeromejerome France
edited 1:44PM in FastReport .NET
I'm having a problem with strings :
I have to calculate something inside a TableCell in a report, and I need to format the result! What's wrong with that ?
Remise globale ([[[General.REMISE_TOTALE_HT]/[General.MONTANT_TOTAL_HT] * 100].ToString("F2")] %)

Comments

  • edited 1:44PM
    Hello,

    Here is the correct string:

    ([([General.REMISE_TOTALE_HT]/[General.MONTANT_TOTAL_HT] * 100).ToString("F2")] %)
  • jeromejerome France
    edited 1:44PM
    Thanks a lot >
  • edited 1:44PM
    but why?
  • edited 1:44PM
    You have to use [] around each data column. Outer [] needed to insert that expression in the Text object.

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.