Reporting. MS Word templates population required

Posted by Andrew Florko on Stack Overflow See other posts from Stack Overflow or by Andrew Florko
Published on 2010-05-19T09:07:59Z Indexed on 2010/05/19 9:10 UTC
Read the original article Hit count: 199

Filed under:
|

Application we developed fills MS Word templates with data from Database. Customers require to have ability edit Word templates via MS Word (change style, font, layout e.t.c) with no additional software to be installed and no training.

AFAIK, Sql Reporting Services and Crystal Reports can't populate MS Word templates produced in MS Word. So we implemented our custom solution that maps .net classes onto xml-saved MS Word documents. It looks like we declare

class MyTemplate
{
   // maps to [age] field declared in ms document straight in the text 
   int Age { get; set; }

   // maps to table by attributes applied to property (omitted)
   List<Person> Persons { get; set; }
}

We also implemented images insertion.

Are there any free libraries for this task or may be you use your own MS-word templators in your projects?

© Stack Overflow or respective owner

Related posts about reporting

Related posts about .NET