Skip to Content

New line after the text

Hi,

I've a problem with generate pdf or print, spaces or new line after a record are deleted by system.

For example If I have this text "adadasdfadafadsfaddasf     \n" and I generate a pdf the whitespace and newline are trimmed.

It's my mistake or is a normal behaviour?

Thank you for your support.

Kind regards.

Sacha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 28, 2015 at 05:04 PM

    Hi Sacha,

    The \n is a C++ escape sequence when coding, for Crystal to add a new line you need to use the chr() value in a formula:

    "asfdgfafsdgafhafhf " + chr(10) + chr(13) + "aasd"

    But when exporting it is normal for CR to trim the string if there is nothing to print after the \n

    Or when editing the text object in CR Designer you can add a Carriage return by holding the Shift key and then hit the the Return key.

    Also need to check on the option for Can Grow in the object properties.

    But in all cases it is normal for exporting to PDF to trim the spaces.

    What are you doing this?

    Don

    Add comment
    10|10000 characters needed characters exceeded