PDA

View Full Version : Access Word using Java Code?




Kathe
Sep 29, 2008, 04:22 AM
Hi ,

I need to create a User Interface using Java which involves a refernce to Microsoft Word 2004.So how can i access Word using Java.I need to create an Word Processor Editor with a Text Pane/Text Area in which the doc file has to be opened with all the styles & formatting applied in the doc.How can i create this using Java.

Im using Xcode 3.

I could get refernce to an RTFEditor but that does not bring up the styles that i need.So please tell how to get reference to Microsoft Word using Java.

Sample Code Please?
Could you suggest any books/Links that suits my request?

Regards
Kathe



whitehexagon
Sep 29, 2008, 07:15 AM
I can't say I've ever seen or heard of a way of embedding Word into a Java application.

I think Apache POI might be the closest thing to what you're looking for, at least for reading/writing the files. The editing would require something along the lines of a 'styled editor kit', but no idea if it's going to match what you'd get in Word.