How to Open a word doc from a java application?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2004
Posts: 35
Reputation: tigerxx is an unknown quantity at this point 
Solved Threads: 0
tigerxx tigerxx is offline Offline
Light Poster

How to Open a word doc from a java application?

 
0
  #1
Dec 16th, 2004
I need to open a word doc template from a java application
and i also need to dynamically update the fields
in the template with some values from the java application..
Can anybody help me????......

Thanks in advance..........
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to Open a word doc from a java application?

 
0
  #2
Dec 16th, 2004
Opening the document is the easy part, it's just a file after all

Interpreting it is hard. There's a library by the Apache group (Jakarta project) which offers partial capabilities to read and write Word documents http://jakarta.apache.org/poi/index.html but if that is not enough you're pretty much on your own (I think they'd be happy to accept contributions towards completing their work).
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4
Reputation: mr_bemar is an unknown quantity at this point 
Solved Threads: 0
mr_bemar mr_bemar is offline Offline
Newbie Poster

Re: How to Open a word doc from a java application?

 
0
  #3
Dec 21st, 2004
hmmm. I think when you name your fields you want to fill like this "<[(myfield1)]>" etc you have a great chance to fill your document without any word interpreter. Only stupid string-replacement. Try it.

Its interessting wether it works for me, too.

Let me know.

Greetings from Germany

Ben
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 35
Reputation: tigerxx is an unknown quantity at this point 
Solved Threads: 0
tigerxx tigerxx is offline Offline
Light Poster

Re: How to Open a word doc from a java application?

 
0
  #4
Dec 22nd, 2004
Originally Posted by mr_bemar
hmmm. I think when you name your fields you want to fill like this "<[(myfield1)]>" etc you have a great chance to fill your document without any word interpreter. Only stupid string-replacement. Try it.

Its interessting wether it works for me, too.

Let me know.

Greetings from Germany

Ben
no u misunderstood i wann to create some template and fill
them with correct data ..............
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC