Carriage return into a text variable on Word Layout report

pcolinapcolina Member Posts: 7
Hi!

I have a problem with some data formating into a Custom Word Layout report. Here is my case:

I have a data item which i represent with a repeater in the custom word layout. On the aftergetrecord of this dataitem, I fill a text variable wtih some data, but I need to introduce a Carriage Return inside that text variable, in order to achieve to display that text variable in two different lines in the field in the word layout.

For example, in my text variable I have "TEXT1 TEXT2". I need to display this text on two lines in the field of the Word Layout. Like this.

TEXT1
TEXT2

I'vre tried different solutions like:

https://community.dynamics.com/nav/f/34/t/188964
https://dynamicsuser.net/nav/f/developers/8258/carriage-return-crlf-into-a-text-variable
https://forum.mibuso.com/discussion/64696/newlines-in-word-report-fields

but anything has worked.

Does anyone have achieved such thing?

Comments

  • pcolinapcolina Member Posts: 7
    DEbbuging the process I've found that inside NAV the text variable already has applied the Carriage Return, so it seems that somehow, Word is replacing that "character" with a blank space.

    :-S
Sign In or Register to comment.