• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to edit and update a word document present in a physical location,through Java?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

How to edit and update a word document using Java,i have a scenario where i should be able to open the existing document and when i edit and save it, a duplicate copy of the document should be created and saved,is it possible through java ??
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess the first obvious question is why not just use Word?
 
Riyaz Mohd
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to update an existing word template and save it,after saving the word doc,an event sholud be fired and one duplicate copy of it the template sholud be created,is it possible through plain java ??
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Duplicating" sounds like a mere file copy; is that correct? If so, that's easy enough to accomplish using just about any programming language.

While I'm not sure why you'd want to do this programmatically instead of manually (maybe you can provide some detail on that), I advise first to investigate using RTF files as the templates. Being text, they're much easier to customize programmatically than actual Word files.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IS it possible with Java - probably.

SHOULD it be done with Java - probably NOT.

Java is a tool. A powerful and flexible one, but in the end, still a tool. It may not always be the best tool for the job at hand. My guess is that for something like this, VB may be a better way to go, but I am not an expert on such things.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic