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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Embedding logo into word document template

(1) ShareShare
ReportReport
Posted on by 128
Hi experts, 
I am creating a word document template for an entity. I am trying to find a way to embed the logo of current company to the document so that, the current company's logo gets generated whenever user downloads the word document through export to word functionality of a form. 
So far I saw, we can embed a logo into an ER report but I can't find ways to achieve the same in a word document template. 
Any inputs or suggestions will help. Thanks in advance
Categories:
I have the same question (0)
  • John Bright Profile Picture
    128 on at
    Embedding logo into word document template
    Hi Sohaib! Thanks for the response! 
     
    Yes, the fields can be mapped by adding the entities. I initially tried that as well in the below mentioned way.  
     
    The company logo will be stored in the table CompanyImage as a container field "Image". 
     
    I joined this table with my custom table and added the "Image" container type field to my entity. But the field is not available in the list of fields in the word template to be mapped. Container type fields got excluded. 
  • Suggested answer
    Sohaib Cheema Profile Picture
    48,256 User Group Leader on at
    Embedding logo into word document template
    You do not need ER for word document templates. 
    For any document all you need is related Data entity and the rest works same as the Excel add-in.
    Your entity should return you data from CompanyInfo.
    here is an example from standard Template
     
  • John Bright Profile Picture
    128 on at
    Embedding logo into word document template
    Hi Neeraj! 
    Thanks for your response. 
    Here, the client is specific about using word templates and not ER report. 
     
    So far, I tried to customizing the below way. Typically in ER we will be mapping the bitmap field that stores the logo against an image in the template.
     
    I thought of trying the same way for word document templates. 
     
    1) I created a unmapped container field in the entity of EDT type bitmap. 
    2) Created a syscomputer method that returns the company logo as bitmap and mapped that method to the unmapped field. 
     
    This customization didn't even compile. It threw a data base synchronization error while compiling. 
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    1,642 on at
    Embedding logo into word document template
     
    As far as i know, embedding a variable logo into the word file in the document template is not feasible without customization. Similar ask was there from our team for one of the project for making Purchases agreement documents, and technical said it is difficult to develop, so i used ER configuration to achieve this (this one you are already aware). Let's hear from other experts as well.
     
    Here is one of the article for creating word template but it is having hard-coded logo.
     
    Regards,
    Neeraj Kumar
  • John Bright Profile Picture
    128 on at
    Embedding logo into word document template
    Hi Adis! 
    Thanks for your response. 
     
    Yes, that is right, I am creating a document in document templates and trying to map the company logo field somehow to dynamically generate the logo while downloading. Is it possible to achieve this through some configuration or some customization over backend? 
  • Adis Profile Picture
    5,604 Super User 2025 Season 2 on at
    Embedding logo into word document template
    Hi,
     
    Could you share a screenshot of what you said here:
     
    whenever user downloads the word document through export to word functionality of a form
     
    I am not sure if I understood it. If you mean the following, then I would expect to have it in the document template.
     
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 946

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 829 User Group Leader

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 818 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans