using openxml document, there content controls data gets added based on data database record; now? need add dynamic table have 1 10 rows. has 5 columns.
getting data put in easy, driven variables. can named row 1 column 1, col 2, col3, col4 , col5;
i can make variables userow1 (to 10) = true/false; these #using defines:
using documentformat.openxml; using documentformat.openxml.packaging; using documentformat.openxml.wordprocessing; using openxmlpowertools.commands; using openxmlpowertools; each set of table rows depend on record is. choices add rows or make static table 10 rows bottom ones blank?
you can create fonction return dynamic table. fonction build table depending datas, , add needed rows.
public table createtable(params type[] datas) { table table = new table(); foreach(type line in par.rows) { row row = new row(); ... table.append(row); } return table; }
Comments
Post a Comment