Hi,
I am working on Word 2007 document and has a requirement to increase the cell width. Manually if I increase the width of the cell it works but using Open XML SDK if I try to increase the width of the cell it's affecting the whole Column in the table. I tried to altogether remove the cells from the Row and re-add cells with increased width and grid span but its not working.
Please suggest.
It's helpful!!
Hi, your solution is definitely helpful. I have the same problem but I have to set cell widths and row heights for a table that is 17 columns wide by 125 rows high. Is the solution described above stil the best (or erven the only) way to go?
I had an idea of splitting the one multirow table into many single row tables. As each of them (single row tables) contains just one row the cell widths for each cell can be set indepedently. Once set I will then need to somehow merge the single row tables into one multirow table. The problem is that when I do it in MSWord (remove the carriage returns separating each single row tables) themultirow table gets created and the cell widths remain as they were. When I try to do the same in OpenXML (using body.RemoveAllChildren<Paragraph>();) the cell widths of the last single row table affect all the preceding rows and I end up having all cells following TableGrid layout.
Any suggestions please?