I apologize for the confusion. It is indeed working with the MS Word. Thank you so much for the help. I really appreciate it.
Mohit Garg
@mohitgarg
Posts made by mohitgarg
-
RE: Rendering html string in docx template.
-
RE: Rendering html string in docx template.
Let me test it with the MS word.
-
RE: Rendering html string in docx template.
Thank you for much for the quick response!
When I click the 'download' button it does spit out a valid docx file but that file is also empty. I tried with a different recipe(like chrome-pdf) with the same api and that is working so the issue right now is only when I use the recipehtml-embedded-in-docx
.options
currently have only thereportName
. I have also tested using the playground api and it's the same issue.docx
file is always empty -
RE: Rendering html string in docx template.
Hi Jan,
I have been playing around with the
html-embedded-in-docx
and since it was not available in the jsreportonline I spinned up my own instance and installed the module. I am using jsreport version 2.6.1 and I could see the docx generated in the preview panel with all the html strings embedded correctly but when I am trying to generate the file through the api, the docx file is coming up empty. I could see that the raw source code, and it has all the tag embedded inside but when I am converting that stream of data to a docx file it is coming up empty. I am also attaching an image from my REST api client so you could see what the data looks like. Any help it appreciated. Thank you! -
RE: Rendering html string in docx template.
Hi,
Thank you for the response. Is it possible to use
html-embedded-in-docx
recipe on jsreportonline or do I have to spin up my own jsreport instance for that because I saw a playground example(https://playground.jsreport.net/w/admin/UwTKeBUW) that was using this recipe but I couldn't find it in my recipe list on jsreportonline.Thanks!
-
Rendering html string in docx template.
Hi, I am using jsreportonline and I am trying to render a string value that has html tag embedded inside in a docx template. My engine is handlebars and i thought using the triple brackets(
{{{}}}
) would do the trick but that is not working. I went through a couple of previous posts where some people were having the same issue and it seem like html-docx-js is the recommended solution. Since this recipe is missing in jsreportonline how do I install it? Do I need to create a project locally and import that in jsreportonline? I couldn't find anything in the docs either. Any help is appreciated.Thank you!