I'm using openTBS to populate tables in a word document. Works great for adding rows to tables with a known amount of columns, however I want to be able to populate a table with an unknown number of rows and columns. Is there a way to achieve this? Thanks.
2条回答 默认 最新
duanqiang7631 2013-09-06 16:44关注I had a similar requirement in the project I'm working on, and as far as I can find, the blunt answer is 'no'.
One option is to include all columns, and delete those that aren't required. From my experimentation however, I seem to remember (you may wish to double check) that it doesn't resize columns after you've deleted, which for my purposes, meant this wasn't an option.
I ended up creating around 10 different tables in my template, and merging into a different table depending on the data from my php.
解决 无用评论 打赏 举报