aspose file tools*
The moose likes I/O and Streams and the fly likes Writing a Microsoft Word Doc using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Writing a Microsoft Word Doc using java" Watch "Writing a Microsoft Word Doc using java" New topic
Author

Writing a Microsoft Word Doc using java

Nomita Gairola
Greenhorn

Joined: Oct 20, 2004
Posts: 8
Hi
I want to create a Microsoft word document using java. and want to use the feature of the word doc like page break alignmant etc.Can this be done???
Ashish Vegaraju
Ranch Hand

Joined: Aug 19, 2004
Posts: 47
hi,

yes u can definately do it...

log on to
http://jakarta.apache.org/poi/

HWPF is the name of the project which u can use to read/write word, Excel, PowerPoint files. and yes the APIs r available for free!
Ashish.
[ October 20, 2004: Message edited by: Ashish Vegaraju ]
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 804
Thanks for the great link, Ashish! I had no idea such APIs were available.


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Nomita Gairola
Greenhorn

Joined: Oct 20, 2004
Posts: 8
thanks ashish....
are there some jars etc which can be downloaded .the site u have mentioned has some struutured directories.... how do i use them
Ashish Vegaraju
Ranch Hand

Joined: Aug 19, 2004
Posts: 47
hi,

if u want to read or write Excel or PowerPoint files log on to.

http://jakarta.apache.org/site/binindex.cgi

just select the mirror and start downloading.

and as far as M$ Word is concerned its in an early development stage..no jars r available right now...u have to download each and every file manually..

cheers
Ashish.

[ October 24, 2004: Message edited by: Ashish Vegaraju ]

[ October 25, 2004: Message edited by: Ashish Vegaraju ]
[ November 05, 2004: Message edited by: Ashish Vegaraju ]
Sudhish Babu
Greenhorn

Joined: Nov 03, 2004
Posts: 1
Hi,

I am also facing the same problem.If any one of you can send me the jar files it will be of great help.

my mail id is sudhishbabu@rediffmail.com


thanks.
Usha Iengar
Greenhorn

Joined: Nov 04, 2004
Posts: 1
Ashish,
Can you send me the jar too? My address is u_iengar@yahoo.com
Thanks in advance
Usha
Alan McA
Greenhorn

Joined: Oct 27, 2004
Posts: 2
You might also want to look at the Jacob Project for automating Microsoft Word from Java.


I have used the bridge to successfully access Word documents from Java in a commercial project.
Rahul Rana
Greenhorn

Joined: Dec 03, 2004
Posts: 1
Alan,
Could you please send me some code as to how you used MS word with Jacob at rahul.rana@gmail.com
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Writing a Microsoft Word Doc using java