且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何直接导出到Word文档中的报表查看器

更新时间:2023-10-15 23:38:10

有关Word只出口到旧的Word格式的LocalReport.Render(第6版,我相信)。不支持基于XML(DOCX扩展)较新的,开放的格式。所以通过具有的docx扩展,Word正在期待新的格式,而不是旧的,所以它解释一切,垃圾。顺便说一句,更改Word文档的docx扩展成.zip文件,解压缩的内容,并有导致夹周围一捅。这是很有意思的是,现在可见的。

The LocalReport.Render for Word only exports to the older Word format (version 6, I believe). The newer, open formats based on XML (docx extension) are not supported. So by having a docx extension, Word is expecting the newer format, not the old one, so it interprets everything as rubbish. As an aside, change the docx extension on a Word document into .zip, extract the contents and have a poke around the resulting folders. It is quite interesting what is now visible.