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

Notifications

Announcements

No record found.

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,885 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans