web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to show line breaks of a field in the word report layout?

(0) ShareShare
ReportReport
Posted on by

With a report, we have a variable which contains some line breaks. However, we noticed that the output word report does not show the line break. 

We tried the following:

rt:=rt+FORMAT(cr)+FORMAT(lf)+FORMAT(cr)+FORMAT(lf)+'<br/>'+'<w:br/>\ \r\n \r \n\n'

Do you have any ideas or other suggestions for the solution of our problem?

Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    Please refer the answers for this question over here.

    Link: http://forum.mibuso.com/discussion/24035/new-line

    Let us know if it helps.

    forum.mibuso.com/.../new-line

  • Community Member Profile Picture
    on at

    Dear Daniel,

    I have the same request.

    Did you find solution for this?

    Kind regards,

    Claus Mayer

  • Suggested answer
    Binesh Profile Picture
    7,887 on at

    Hello Daniel,

    In RDLC Report you can use System.Environment.NewLine


    It gets a new line, for example you can write in TextBox expression something like:

    =Fields!CompanyAddr1.Value + System.Environment.NewLine + Fields!CompanyAddr2.Value

     

  • ghuebner Profile Picture
    42 on at

    In the meantime, an improved module called Wordlayout+ is available, which allows to insert manual line breaks within plain text controls from within NAV C/AL. Further information and a download link can be found here: https://massivedynamicsblog.wordpress.com/2016/09/15/wordlayout/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans