我从SharePoint服务器获得了附加的img值作为响应,但无法将其写入docx文件。使用Postman的文件下载API给出了相同的响应,如果我将Postman响应保存到docx文件,那么它保存得很好,但不是从Java端。如果我使用Java编写对docx文件的相同响应,则该文件已损坏。我正在使用此REST A
我无法将div的内容导出到.docx文件中。我使用的是FileSaver.js,在这里可以找到:。我的JavaScript函数: var blob = new Blob([document.getElementById('editor').innerHTMLvnd.openxmlformats-officedocument.wordprocessingml.document;charset=utf-8"
我想点击在docx文件中生成和下载文本的按钮。MemoryStream();
document.Save(stream, FormatType.Docx// Download Word document in the browser
return File(stream, "application/msword