Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

Posted on by Microsoft Employee

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

  • ghuebner Profile Picture
    ghuebner 42 on at
    RE: How to show line breaks of a field in the word report layout?

    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/

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: How to show line breaks of a field in the word report layout?

    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

     

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to show line breaks of a field in the word report layout?

    Dear Daniel,

    I have the same request.

    Did you find solution for this?

    Kind regards,

    Claus Mayer

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

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans