Automatically formatting tables in generated Word doc
I've been searching for a solution to this problem but haven't found one yet—hope this explanation makes sense.
I have a RoboHelp 7 HTML project that I am exporting as Printed Documentation (Word 2007 document). The document has a large number of tables, and in the generated Word document many of them are broken across pages. I am looking for a way to pre-format the tables so the "allow row to break across pages" option is de-selected for the entire table, and the "repeat as header row" option is selected for the first row.
I created a .dotx template in which I edited the default table style to include the above options. (In Word 2007, the default table style is "Table Grid.") When I create a new .doc file using this template and use the Insert-->Table function, it creates a new table with the options I want. However, when I generate the printed doc from RoboHelp using the same .dotx template, it generates tables with the style "Table Normal," which allows rows to break across pages and does not repeat the header row. The "Table Normal" style in Word 2007 does not seem to be modifiable (option is greyed out).
I looked at the HTML in RoboHelp and saw that all my tables have the table class=NormalTable, so I tried making a table style in Word called NormalTable and set it as the default table style. However, when I generate the Word doc from RoboHelp, the tables still have the style "Table Normal."
The table class "NormalTable" was not present in my .css file, so I added it, but it didn't make any difference. It still wants to map the RoboHelp table style to the Word "Table Normal" style that does not have the options I want.
Any ideas for how I can generate the tables correctly?
