Carriage return in a string

Stimulsoft Reports.NET discussion
Post Reply
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Carriage return in a string

Post by Jennypi »

Hi

I'm planning to concatenate, in a string, several variables from my DB, separated with a carriage return character.
For example, my string would be : "aaa\nbbb\ccc".
The purpose is to have, in the report, one single (but very high) text field containing this variable. All the values would be displayed on the top of each other, like this:
aaa
bbb
ccc

Will it work? Should I use another carriage return separator (\n\r?)?

thanks.
Jennypi
Posts: 361
Joined: Mon Nov 17, 2008 7:13 am
Location: France

Re: Carriage return in a string

Post by Jennypi »

I'm joining an example.
Report.mrt
(4.85 KiB) Downloaded 321 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Carriage return in a string

Post by Alex K. »

Hello,

Please try to use the "\n" in the expression of the variable. In the database, you can use the CHAR(13) value.

Thank you.
Attachments
Capture.PNG
Capture.PNG (45.13 KiB) Viewed 2728 times
Post Reply