fill table from dotx file before genereting pdf file with aspose

236 Views Asked by At

I have to do the followings:

  1. use a .dotx template with header, footer, table, all marked with bookmarks at placeholders that will be filled with data
  2. fill with data the header and the table
  3. generate a pdf file

What should be the steps to accomplish this from the coding perspective?

  • To create the document with the dotx. template?
  • to create grammatically a table?
  • to find the bookmarks and fill them?

Please give some hints; I saw a lot of examples, but I don’t understand how to use the template and to fill it with data. Thanks!

1

There are 1 best solutions below

1
On BEST ANSWER

Please do not use the form fields in the template document. I suggest you please use LINQ Reporting to populate the template document with data that comes from database. The LINQ Reporting Engine is a part of the Aspose.Words API that enables you to build reports using an extended set of reporting features.

I work with Aspose as Developer Evangelist.