File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: generating a word document in java from a template and replacing some of the info