Skip to main content
Business Central forum
Suggested answer

How to set LetterText on word document templates

editSubscribe (1) ShareShare
Posted on by 131
Hi all,
I am setting up new document layouts for our invoices in Microsoft Word. In the XML there is an option to add 'LetterText'-field: BodyText, ClsoingText, GreetingText & PmtDiscText:
I would like to add a ClosingText on my invoice templates. But I'm not able to find how to set the text that should be displayed for the 'ClosingText' field. Where can I find these settings??
Thank you in advance.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 60,087 Super User on at
    How to set LetterText on word document templates
    Hi, unfortunately, as kenvdhorst mentioned, this can't be done, it's hardcoded in the variable.
    And these variables are not protected var, so they cannot be modified in the extension. The only way is to copy this report and create a new one.
    Dynamics 365 Business Central: Can we access global variables from page extensions or table extensions? Yes, But……
    Hope this helps.
  • Suggested answer
    kenvdhorst Profile Picture
    kenvdhorst 32 on at
    How to set LetterText on word document templates
    HI JR61, 
    I'm experiencing the same issue. As far I can see; there's nog option to fill in these variables. 

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,130 Super User

Martin Dráb Profile Picture

Martin Dráb 222,689 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans