Download docx error.
-
I have a local jsreport installation and a docx report, when I try to download it, it redirects to jsreport.net:
How to change this behavior to my local server?
Thank you.
-
I believe you want to primarily use the "Download" button which is in the "Run" button context.
You can find relevant documentation here
https://jsreport.net/learn/office-preview
-
@jan_blaha Thanks, but I don't use the jsreport studio, I am using jsreport client from an expressjs app, there I have enabled the:
options: {
preview: true,
}it successfully previews to the browser but when I press the download button it does not work.
-
Yes, this is by design.
If you select preview, you get back iframe with the document preview.
That is supposed to be just a development-time thing, if you want a full document, don't add a preview attribute.
-
I am using the (Chaining response stream) from nodejs-client, when I don't enable preview, a zip file containing some xml gets downloaded.
What am I doing wrong?
-
This is how the office documents look like.
It's a set of zipped XML.
-
Since I am new to node and javascript, and I am sorry if my question is not related to jsreport, but is there any way to convert this xml to end user readable word file?
Thanks