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 AX (Archived)

AX 2012 SSRS Report - Remove line breaks in company address

(1) ShareShare
ReportReport
Posted on by

Hi,

I'm working on an AX 2012 SSRS report and I need to display the company address on one line. It appears the data has line breaks which I'm trying to remove and replace with commas.

I've tried the REPLACE() function in an expression, but with no success. Any help would be greatly appreciated.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Klaas Deforche Profile Picture
    2,433 on at

    Are you using a data provider? You could remove the line breaks in AX before inserting it to you temporary table using smth like this:

    strreplace(Your string, '\n', ',')

    Or user \r or \r\n depending on which kind of breaks it has.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Klaas,

    Thanks for your reply.

    I'm not using a data provider but I have managed to resolve my problem using the Replace() function in the end. It looks like I have line feeds at the end of each line in the address.

    This is what I used as an expression in the report:

    =Replace(First(Fields!CompanyAddress.Value,"PurchPurchaseOrderDS"),Chr(10),", ")

    Thanks again.

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 AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans