how to create .doc file using java?

2019-08-20 11:25发布

Can anyone tell me how to create doc files using java? I know, there's a POI library, but it seems like it can save only simple documents. You can read anything you wish, but you can't save it all back again. Or may be i missed something? How can i save whole document with pictures, tables and styles?

4条回答
在下西门庆
2楼-- · 2019-08-20 11:43

Docmosis lets you do heaps of styling easily via the template. Uses OpenOffice and Java to do the job. Its free and free to distribute.

查看更多
干净又极端
3楼-- · 2019-08-20 11:43

JODConverter will allow you to convert lots of different document formats

查看更多
等我变得足够好
4楼-- · 2019-08-20 11:44

OpenOffice.org's Universal Network Objects (UNO), allow you to generate .doc,.PDF, as well as OpenOffice documents. It supports several programming languages like: Java, C++, Visual Basic, etcc..

Some good things is that: its free, open source and plataform-independent

You can build documents, spreadsheets, presentations, etc. Start from scratch or using a template and fill the gaps..

In order to use it you will need to include some libraries that comes with the OpenOffice suite.

Useful links:

查看更多
相关推荐>>
5楼-- · 2019-08-20 11:53

It ain't cheap, but you could try Aspose.Words. It'll do everything you state above and more.

查看更多
登录 后发表回答