• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

working on documents in Java

 
Greenhorn
Posts: 2
  • 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 any API / Open Source Jar for working on Microsoft documents in JAVA.

I have looked at Apache POI. Although it is suitable for reading the document, I am unable to make difficult changes like Hyperlinks modification in it.

My projects need me to change the underlying hyperlink from one location to another.

I have looked at Java2word as well and not use, and Aspose is not open source nor free.

Thanks.
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can simply create  / edit hyperlinks with apache poi:

 
Marshal
Posts: 76862
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch

I shall move this discussion; it is too difficult for its present location.
 
Anurag Mohapatra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Ivan.

But the example is for Excel file. I need this for word document of office.
 
Saloon Keeper
Posts: 7488
171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I need this for word document of office.


That would have been important information to mention at the beginning. While the POI API is strong for Excel spreadsheets, it is comparatively weak for Word documents. But I do see a class org.apache.poi.xwpf.usermodel.XWPFHyperlink, so maybe there is hope yet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic