Skip to main content
Question

Create word using Word TEMPLATE


Forum|alt.badge.img+1

I have a word template with me and I would like to use that template to create a new document along with the custom content dynamically.

 

Cheers,

Srikanth

5 replies

xiaomengatsafe
Safer
Forum|alt.badge.img+3

Hi @kanthsri74. Thank you for your question. Unfortunately, the Word writer currently doesn't support the true workflow of a Microsoft Word template. It will add new content at the end of the existing content of the "template" file, rather than filling in custom contents into the template.

We've realized the usage of the term "template" is misleading, so in 2019 we've changed the parameter for supplying this "template" file to be called Base Microsoft Word file, as this file is used to help define custom settings for headings, fonts, colors etc. (documentation change will follow soon)

Would you mind to please post your request as a new Idea. And share with us some details about what your intended scenario and workflow look like? That would be very helpful for us! Thank you!


freddy17
Contributor
Forum|alt.badge.img+8
  • Contributor
  • June 15, 2020
xiaomengatsafe wrote:

Hi @kanthsri74. Thank you for your question. Unfortunately, the Word writer currently doesn't support the true workflow of a Microsoft Word template. It will add new content at the end of the existing content of the "template" file, rather than filling in custom contents into the template.

We've realized the usage of the term "template" is misleading, so in 2019 we've changed the parameter for supplying this "template" file to be called Base Microsoft Word file, as this file is used to help define custom settings for headings, fonts, colors etc. (documentation change will follow soon)

Would you mind to please post your request as a new Idea. And share with us some details about what your intended scenario and workflow look like? That would be very helpful for us! Thank you!

Hi Xiaomeng,

I have a similar question regarding Base Word files. I have Base Files where I would like replace parts of the text and save a new .docx file. Could you point me to tutorials or any workaround where Feedback reports can be generated in some format, such as PDF or docx? I had a look at the MSStyleFormatter, but I do not wish to create a "new" base files, but just to edit/update the strings inside the Word Base File. For example, text in yellow just needs to be replaced:


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • June 15, 2020
freddy17 wrote:

Hi Xiaomeng,

I have a similar question regarding Base Word files. I have Base Files where I would like replace parts of the text and save a new .docx file. Could you point me to tutorials or any workaround where Feedback reports can be generated in some format, such as PDF or docx? I had a look at the MSStyleFormatter, but I do not wish to create a "new" base files, but just to edit/update the strings inside the Word Base File. For example, text in yellow just needs to be replaced:

Hi Freddy,

I've had success using python-docx in a pythonCaller to update an existing word document or template.


canerakin
Contributor
Forum|alt.badge.img+5
  • Contributor
  • April 7, 2022
freddy17 wrote:

Hi Xiaomeng,

I have a similar question regarding Base Word files. I have Base Files where I would like replace parts of the text and save a new .docx file. Could you point me to tutorials or any workaround where Feedback reports can be generated in some format, such as PDF or docx? I had a look at the MSStyleFormatter, but I do not wish to create a "new" base files, but just to edit/update the strings inside the Word Base File. For example, text in yellow just needs to be replaced:

@jdh​ would it be possible to share your code example or workbench?


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • April 7, 2022
freddy17 wrote:

Hi Xiaomeng,

I have a similar question regarding Base Word files. I have Base Files where I would like replace parts of the text and save a new .docx file. Could you point me to tutorials or any workaround where Feedback reports can be generated in some format, such as PDF or docx? I had a look at the MSStyleFormatter, but I do not wish to create a "new" base files, but just to edit/update the strings inside the Word Base File. For example, text in yellow just needs to be replaced:

Unfortunately not, but I used an example provided by @ebygomm​ . She might be able to reupload the template from https://community.safe.com/s/question/0D54Q000080hIPsSAM/mswordstyler-how-to-include-picture-in-table


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings