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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Composite Address Field Spacing Issues With Word Templates

(0) ShareShare
ReportReport
Posted on by

Hi all,

I am trying to create Word Templates for Statement of Work documents and when I inject the composite address field from CRM as a content control, the address is placed all on one line (the carriage returns are replaced with spaces).

Example:

The format looks like this -

 Line 1  Line 2 city, state postal code 

I need this format (line returns after the address' line 1 and line 2 fields)-

Line 1

Line 2

city, state postal code

I've tried creating custom multi line fields that are populated with workflows and hold the carriage returns in CRM just fine. However, in the Word Template the carriage returns are replaced with spaces. Also, the content control functions that work with CRM mail merge controls do not work with XML mapped content controls. 

Does anyone have an idea as to what is going on and if there is a solution?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    BrianC Profile Picture
    1,515 on at

    Hi Jperry,

    I may not be understanding this correctly, but rather then inserting the composite address field, you could insert the address fields separately?

    Could you show a screenshot of how it looks in word?

  • jperry1120 Profile Picture
    on at

    WD-address-problem.PNG

    Hello Schweep,

    When I insert the fields separately, if the line 2 field does not contain data, I get a blank line (as shown above in the image). That is why I was inserting the composite address to get rid of the blank line if the line 2 field was empty, but when using the composite address field the carriage returns are replaced by spaces.

  • Community Member Profile Picture
    on at

    Hi jperry!

    I have the exact same problem, did you figure out a solution you would like to share?

    Thank you!

    /Isabell

  • eSBe Profile Picture
    97 on at

    Is there a solution to this?

    I'm having an issue with the address field in word templates.

    When I separate it by field, Street 2 is empty so it skips a line:

    pastedimage1649342732983v2.png

    But when I use composite, the spacing is a mess:

    pastedimage1649342791375v3.png

    Any thoughts?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans