I am using the DocxTemplater there im trying to use my own templete from my local but it showing error. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I am using the DocxTemplater there im trying to use my own templete from my local but it showing error.

But when i used the link which was already present then its working and downloading the document . Also i tried to put that doc on the server still it showing same problem. https://stackblitz.com/edit/react-docxtemplater-example-yzpave?file=app.js,public%2Fdocc.docx Please check this link. The objective have in my mind is that i want to put some data related to my work in word file so instead of creating new doc everytime why do i just paste the new data into the field and download the doc

6th Feb 2024, 6:51 AM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
1 Answer
+ 1
When using a template from a local file, ensure that the file path is correctly specified in your code and that the file is accessible. If the issue persists, consider hosting the template file on a server or cloud storage to ensure proper access. To streamline your workflow and easily update work-related data in a Word document, using a template with placeholders for dynamic content is an efficient approach. By dynamically populating these placeholders with new data, you can generate updated documents with minimal effort. This way, you can focus on your work content without the hassle of recreating the entire document each time. Ultimately, leveraging templates in this manner can save time and enhance productivity in managing your work-related documentation.
13th Apr 2024, 5:36 PM
`нттp⁴⁰⁶
`нттp⁴⁰⁶ - avatar