• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Riyaz Mohd
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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 ??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • 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
  • 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 ??
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!