c# - How to assign all table properties of table1 to table2 using Novacode DocX? -


after creating table2 , inserting after table1, how u give table2 properties of table exists in document? properties speaking of include keep next, keep lines together, allow rows break across pages, etc..

novacode.table table1 = template.tables[index]; novacode.table table2 = table1.inserttableafterself(1, 2); //table2.properties = table1.properties 

i'm still novice myself @ novacode-docx, believe can assignment

 table2.design = table1.design; 

this code able compile, have not tested it's results thoroughly.

you can lot of assignments that, it's not best, depends on needs are. great place docx questions discussion board. can find number of posts custom code modifications .dll file might suit future needs.

a useful tool have when using docx code library, documentation text. unfortunately, hasn't been updated in time, can still download older version has many of functions defined here

hopefully gets going

have awesome day, , well!


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -