doulu8415 2013-09-05 23:54
浏览 7

有没有办法使用openTBS动态地将列添加到Word文档中的表?

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.

    评论

报告相同问题?