Hi sars84,

Perhaps I have not understood your need, but it seems that you wish merge a
docx template with Java value.
If it that I suggest you to try
XDocReport<http://code.google.com/p/xdocreport/> and
start with Quick
Start<http://code.google.com/p/xdocreport/wiki/DocxReportingQuickStart>
.

You can play with our online demo<http://xdocreport.opensagres.cloudbees.net/>
if you want.

Regards Angelo

2013/1/22 sars84 <[email protected]>

> My chief target is to open a file which content some information as
> template,
> and change (replace) some Informations (as String variables given) in the
> text! I can get the header, when I write my code like this:
>
> for (XWPFHeader ho : doc.getHeaderList()){
>                         for (XWPFParagraph pog : ho.getParagraphs()){
>                                 XWPFRun runpog = pog.createRun();
>                                 String text =
> runpog.getParagraph().getText();
>                                 System.out.println(text);
>                         }
>                 }
>
> My output is as String : Testplan #type# #formname#
> #projektname#_ftp_crf_#type#_#formname#
> My header conteins two fields; on the top of right:
> #projektname#_ftp_crf_#type#_#formname#
> and on the top of left: Testplan #type# #formname#
>
> I want to replace for example all the #type# to "TypForm" as String!
>
> I am thankful for any Help!
> Sars
>
>
>
> --
> View this message in context:
> http://apache-poi.1045710.n5.nabble.com/Problem-by-getting-header-from-a-docx-file-tp5711934p5711936.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to