Filling out a template with Strings of data
Posted: Wed Sep 08, 2010 7:05 am
Hello,
I have a template that contains both freeform text areas, drop down boxes, and date drop down boxes. Can I use docx4j to fill this template out with this mixed content? What are the examples on the site I need to be following? I obviously want to keep my style parameters in the template, but for some of the places we expect bulleted lists to come in, and there can be any number of them. Do I have to construct each of these paragraph XML lines in the code, insert the text, and loop over all the entries for that section?
Most of the fields int he template are simply denoted by something like <Employee_Name>, do you just search for that string, and replace that text?
Thanks for any insight. This is my first attempt at messing around with any kind of xml documents
I have a template that contains both freeform text areas, drop down boxes, and date drop down boxes. Can I use docx4j to fill this template out with this mixed content? What are the examples on the site I need to be following? I obviously want to keep my style parameters in the template, but for some of the places we expect bulleted lists to come in, and there can be any number of them. Do I have to construct each of these paragraph XML lines in the code, insert the text, and loop over all the entries for that section?
Most of the fields int he template are simply denoted by something like <Employee_Name>, do you just search for that string, and replace that text?
Thanks for any insight. This is my first attempt at messing around with any kind of xml documents