This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes generating a word document in java from a template and replacing some of the info Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "generating a word document in java from a template and replacing some of the info" Watch "generating a word document in java from a template and replacing some of the info" New topic
Author

generating a word document in java from a template and replacing some of the info

sreerama Mutnuri
Greenhorn

Joined: Mar 30, 2010
Posts: 1
Hi -
I have word templates for different scenarios and i have to replace some information dynamically and generate the word document in my application.Using poi api for doing this.

1.Not able to retain the structure ( style,page break,indentation etc) in the generated document all the document contentn is coming in to one page.How to apply the Document prooperties ??
2.Not able to replace the text it is throwing exceptions..



Could you please help out in resolving this ??
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Dude this is not the right forum to post your question.
Any way, don't repost it in another forum as our admins will take care of moving it to the right place.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Also, please note that your code is *completely* unreadable--can you not see your post after you make it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: generating a word document in java from a template and replacing some of the info