Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing a Microsoft Word Doc using java

 
Nomita Gairola
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the great link, Ashish! I had no idea such APIs were available.
 
Nomita Gairola
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashish,
Can you send me the jar too? My address is u_iengar@yahoo.com
Thanks in advance
Usha
 
Alan McA
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alan,
Could you please send me some code as to how you used MS word with Jacob at rahul.rana@gmail.com
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic