Wednesday, March 7, 2012

Carriage Return in Crystal Syntax

I am sure there is a solution already out there, but I couldn't find it. I am trying to insert a carriage return in some Crystal Syntax I am writing. I am doing the following

cstr(currentfieldvalue) + chr(13) + "FG"

and instead of displaying

"$300.00
FG"

it displays

"$300.00 FG"

Can someone help?Try sending a linefeed only
cstr(currentfieldvalue) + chr(10) + "FG"

or

sending a cr + linefeed
cstr(currentfieldvalue) + chr(13) + chr(10) + "FG"|||Try sending a linefeed only
cstr(currentfieldvalue) + chr(10) + "FG"

or

sending a cr + linefeed
cstr(currentfieldvalue) + chr(13) + chr(10) + "FG"

I tried both of those and it does not work. I have attached a screen shot of the coding area, maybe you can see what I am missing?

Thanks,
Michael|||Forgot to tell you that you have to check the Can Grow property
You can find it in FormatField / Common / CanGrow
Sorry!

No comments:

Post a Comment