On the web page, it looks like there is no current development in the old style .doc.
在网页上,看起来旧样式.doc中没有当前的开发。
- Is it good enough to create complex documents?
- Can it read all .docs without crashing?
- What features do (not) work?
创建复杂文档是否足够好?
它可以读取所有.docs而不会崩溃吗?
哪些功能(不)有效?
I am not currently interested in the XML based formats, as I don't control the client side.
我目前对基于XML的格式不感兴趣,因为我不控制客户端。
The excel support seems to be much better.
excel的支持似乎要好得多。
3 个解决方案
#1
3
If you are looking for programmatically reading or writing doc files, I believe you're better of with remoting OpenOffice or StarOffice. We've done this at a former company, even though it's a pretty heavy solution, it worked quite well. OpenOffice has (right after Word) a very good doc-Support. For remoting it's a lot better than Word itself. At said company we (earlier) used to remotecontrol Word with frequent problems because Word (on saving a document) insisted on displaying a warning dialog from time to time. Bad idea on a server deep down in some datacenter with nobody close to it.
如果您正在寻找以编程方式阅读或编写doc文件,我相信您最好使用远程OpenOffice或StarOffice。我们在一家前公司做过这件事,尽管这是一个非常重的解决方案,但它运作得很好。 OpenOffice(在Word之后)有一个非常好的文档支持。对于远程处理它比Word本身要好得多。在上述公司,我们(早些时候)曾经经常远程控制Word,因为Word(保存文件时)坚持不时显示警告对话框。在一些数据中心深处的服务器上的坏主意,没有人接近它。
As this was a Java shop, the very good OpenOffice support for Java came in handy. In fact, they even used to bundle the commercial version StarOffice and had some very good contacts at and help from Sun.
由于这是一个Java商店,非常好的OpenOffice支持Java派上用场。实际上,他们甚至习惯将商业版StarOffice捆绑在一起,并与Sun有一些非常好的联系和帮助。
Disclaimer: As andHapp and alepuzio said, POI is very good in Excel support and I'm using it with big success. Last time I've seen the doc support, I didn't dare using it in production (for customers). I haven't looked at doc support for at least two years.
免责声明:正如andHapp和alepuzio所说,POI在Excel支持方面非常出色,而且我使用它取得了巨大的成功。上次我看过doc支持,我不敢在生产中使用它(对于客户)。我至少两年没有看过doc支持。
#2
0
I have used the Apache POI For reading and writing Excel files (.xls) and it works like a charm. There were a few issues but I found easy workarounds so I assume it would be the same for the word documents. The only issue you would have is with reading and writing the .docx (.xlsx in my case) format since Apache POI does not support them yet.
我使用了Apache POI用于读取和编写Excel文件(.xls),它就像一个魅力。有一些问题,但我找到了简单的解决方法,所以我认为它对于单词文档是相同的。您唯一的问题是读取和编写.docx(在我的情况下为.xlsx)格式,因为Apache POI尚不支持它们。
#3
0
It dependes by your goal. I code with POI for report in Excel format and it's ok for simple report, because there'a a lot of code for simple operation. I coded some utility methods for repeating task. If you code for java =>1.5 you try JXLS (what extends POI and use XML/XSLT technologies).
它取决于你的目标。我用POI代码编写Excel格式的报告,它可以用于简单的报告,因为有很多简单操作的代码。我编写了一些重复任务的实用方法。如果您编写java => 1.5的代码,那么您可以尝试使用JXLS(扩展POI并使用XML / XSLT技术)。
#1
3
If you are looking for programmatically reading or writing doc files, I believe you're better of with remoting OpenOffice or StarOffice. We've done this at a former company, even though it's a pretty heavy solution, it worked quite well. OpenOffice has (right after Word) a very good doc-Support. For remoting it's a lot better than Word itself. At said company we (earlier) used to remotecontrol Word with frequent problems because Word (on saving a document) insisted on displaying a warning dialog from time to time. Bad idea on a server deep down in some datacenter with nobody close to it.
如果您正在寻找以编程方式阅读或编写doc文件,我相信您最好使用远程OpenOffice或StarOffice。我们在一家前公司做过这件事,尽管这是一个非常重的解决方案,但它运作得很好。 OpenOffice(在Word之后)有一个非常好的文档支持。对于远程处理它比Word本身要好得多。在上述公司,我们(早些时候)曾经经常远程控制Word,因为Word(保存文件时)坚持不时显示警告对话框。在一些数据中心深处的服务器上的坏主意,没有人接近它。
As this was a Java shop, the very good OpenOffice support for Java came in handy. In fact, they even used to bundle the commercial version StarOffice and had some very good contacts at and help from Sun.
由于这是一个Java商店,非常好的OpenOffice支持Java派上用场。实际上,他们甚至习惯将商业版StarOffice捆绑在一起,并与Sun有一些非常好的联系和帮助。
Disclaimer: As andHapp and alepuzio said, POI is very good in Excel support and I'm using it with big success. Last time I've seen the doc support, I didn't dare using it in production (for customers). I haven't looked at doc support for at least two years.
免责声明:正如andHapp和alepuzio所说,POI在Excel支持方面非常出色,而且我使用它取得了巨大的成功。上次我看过doc支持,我不敢在生产中使用它(对于客户)。我至少两年没有看过doc支持。
#2
0
I have used the Apache POI For reading and writing Excel files (.xls) and it works like a charm. There were a few issues but I found easy workarounds so I assume it would be the same for the word documents. The only issue you would have is with reading and writing the .docx (.xlsx in my case) format since Apache POI does not support them yet.
我使用了Apache POI用于读取和编写Excel文件(.xls),它就像一个魅力。有一些问题,但我找到了简单的解决方法,所以我认为它对于单词文档是相同的。您唯一的问题是读取和编写.docx(在我的情况下为.xlsx)格式,因为Apache POI尚不支持它们。
#3
0
It dependes by your goal. I code with POI for report in Excel format and it's ok for simple report, because there'a a lot of code for simple operation. I coded some utility methods for repeating task. If you code for java =>1.5 you try JXLS (what extends POI and use XML/XSLT technologies).
它取决于你的目标。我用POI代码编写Excel格式的报告,它可以用于简单的报告,因为有很多简单操作的代码。我编写了一些重复任务的实用方法。如果您编写java => 1.5的代码,那么您可以尝试使用JXLS(扩展POI并使用XML / XSLT技术)。