PDA

Click to See Complete Forum and Search --> : Read/Write MS Word using Java


ychhuong
May 4th, 2006, 03:44 AM
How can I read/write Microsoft Word document from Java?

manavo11
May 4th, 2006, 07:39 AM
Have a look here : http://schmidt.devlib.org/java/libraries-word.html

zurick
Jan 22nd, 2009, 09:17 AM
Another solution:

import officetools.OfficeFile;
...
FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");

All possible convertions:
html --> pdf
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
from dancrintea.ro/html-to-pdf/

ComputerJy
Jan 22nd, 2009, 09:18 AM
And from where exactly do you import the class officetools.OfficeFile?

zurick
Jan 27th, 2009, 10:23 AM
My company has bought it and it has integrated it into a project.

This guy is providing it: http://dancrintea.ro/html-to-pdf/