Making report. Requires a set of MS Word templates

Our application fills in MS Word templates with data from the database. Clients should be able to edit Word templates through MS Word (change the style, font, layout etc) without additional software for installation and without training.

AFAIK, Sql Reporting Services and Crystal Reports cannot fill in MS Word templates created in MS Word. So, we have implemented our own solution, which maps .net classes to xml-saved MS Word documents. Looks like we are announcing

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 image insertion.

Are there any free libraries for this task, or can you use your own MS word templates in your projects?

+3
2

MS Word Mail Merge : Word (Excel, CSV, SQL Server, ODBC ..), , . , , .

0

, (, , ), OpenXML. , .

0

Source: https://habr.com/ru/post/1746144/


All Articles