• Post Reply Bookmark Topic Watch Topic
  • New Topic

Populate MS Word document fields  RSS feed

 
Ryoma Echizen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!

How do I populate fields in documents? Is there a tool/framework/open-source that exists for this?

My current project will be to access a document, populate it's fields from the database, and automatically print it.

Thanks in advance!

RE
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Handling DOC files is tough. The best bet is probably the OpenOffice Java API (which has a definite learning curve). Of the other standard methods of handling DOC files in Java, I don't think POI can handle this, and WordApi.exe (which is Windows only) may not either. Links to all these can be found in the AccessingFileFormats page.
 
Ryoma Echizen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!