This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Java Miscrosoft Word API

 
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am looking for Java API's to edit microsoft word doc, my requirement is that I have a word document, with fields like name, emplid, dob etc. these fields are blank and to be populated at run time.

So my requirements are:

1. I should be able to keep the word document as a template... and populate at run time.

2. The API's should also be able to run in UNIX/LINUX Box

Its bit urgent as I need to provide the solution to the client, urgent help would be appreciated...

Thank YOu
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only Java Word APIs I'm aware of are POI and OpenOffice. DOC support in POI isn't maintained anymore, but maybe you're lucky and it does what you need. OpenOffice is more involved, but also better maintained. I have no idea if either supports forms. You can find some links on the AccessingFileFormats wiki page.
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Andy, Did you ever find a solution to your requirement regarding Java API for MS Word Processing?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Andy hasn't posted here for more than a year, so I doubt that he'll be reading your question. But since I posted that, many improvements have in fact been made to Apache POI, so it might well be sufficient for your purposes.
 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ulf, I am looking at POI HWPF but not been able to get a solution for "replacing a String with HYPERLINKS in WORD doc"
 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Santosh, did you find solution to you problem. I am also trying to do something similar using poi, but not able to do so.
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic