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 merge fields to a header in a style sheet for printing?

(0) ShareShare
ReportReport
Posted on by

Hello,

I have a problem that I'm creating Word stylesheets, but some of my merged fields need to go in the header of the Word document.

This looks fine on screen on the Word document, but when I print it it just prints the merge field names eg <<Sell-to Customer Name>> and not the actual merged data.


Can someone help me how to make this work and print correctly?

Thank you

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Actually I've realised it's not just when I print - the same happens when I save to pdf or standard Word document (from the original xml output).. :(

  • mmv Profile Picture
    11,471 on at

    Hi Threeea,

    It's due to that format of the field in the word document.  You may remove the above said <<Sell-to Customer Name>>, remove the unwanted space in between and try to place it again from Merge Fields, it must work.  It works well.

  • Community Member Profile Picture
    on at

    Thanks Mahesh

    But I am finding that although removing and re-adding the field works normally, it doesn't work for me in the header of the document!

    Also is there a way to make the merged fields pick up formatting in the Word document eg sentence case, UPPERCASE, etc? - I have tried formatting the merge fields like this when designing the stylesheet but the format doesn't come through on the actual merge.

  • mmv Profile Picture
    11,471 on at

    Hi,

    I don't think that it works on the header of the document.  The formatting must work.  Did you formatting the Merge Field?

  • Community Member Profile Picture
    on at

    Thanks Mahesh, maybe I'll just have to leave the header then! Instead then on each one we have just copied the header and pasted it back as text which is a workaround.

    On the formatting - yes I select the merge field so it highlights then format it like you normally would in Word eg select 'sentence case' - but when you run the Stylesheet it doesn't pick it up.  I am using Word 2013.

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