Last post May 25, 2012 05:55 AM by Jure.Les
May 24, 2012 11:43 AM|chithra_iyer|LINK
I have one requirement to generate a word document in specific format like below
Name : Test
Address: Test 1
PostCode : Test
how can i achieve this?
I tried using bookmarks but thats possible only for a single page.
In my case i need to loop data table and add new pages and the format is same accross all pages
Please help me out
May 24, 2012 11:55 AM|AidyF|LINK
You'll need to use something like this to create your Word files
May 25, 2012 05:55 AM|Jure.Les|LINK
Basically, you need two types of "tags" to implement a basic data driven document generation/reporting. The first type of tags is the placeholder tag which you already implemented ith bookmarks. The second type is a tag that acts as a repeater for the collection
of items. This tag will not be replaced with the values from DB but will instead multiply its wrapped content (table row). This type of tag can also be a bookmark. All you need to do is to somehow name them diferently so the document generation engine will
be able to distinguish them. Take a look at Docentric. It's a 3rd party toolkit that already implements all these concepts (in the form of Field (placeholder) element and List (repeater) element) and also ships with a
Word Add-In to easily design templates, import data schema, bind tags against a schema. Besides the Field and List tags it also features other useful tags such as Image, Chart, Hyperlink, Group, ...