Im trying to include the feature of automatically generating a word document through C# using a pre-defined template. Im able to insert 'mailmerge' fields in the word template documents at specific locations, and accessing these through the code in C#. I can update the values of these fields, no problem.
I am now trying to insert a table at a specific location. I would like to dynamically set the number of rows and columns, back color, fore color of the cell, font size etc. and even formulas with cell referencing (like you have in excel).
Is it possible to do this using C#? i looked at a few posts online, but did'nt really find a solution. some were not working.
However my next problem is formatting the cells for this table that's just created. Until now i am only able to find how to set the width and height of cells/rows/columns for the table. I need to find out how to change the backcolor/forecolor, font style etc for a particular cell or the entire row.