Copy link to clipboard
Copied
Hi all,
the new table style mapping works, but is of no worth for me if Robohelp is not able to generate table headers in the Word output. Having headers in Word is also a prerequisite for the first line to repeat on each new page.
Is there a way to output the first line as a header?
HTML does not have the concept of repeating the header row on each page because an HTML page is one page, albeit it print over several. Print any HTML table you find from any source and I don't think you can make the header repeat. Hopefully Willam can confirm.
Because of that it is not possible for HTML to send that information to a Word document.
On my site there is a macro to find every table in a document. You could then amend that to apply that property to every table.
See www.grainge.org for
...Copy link to clipboard
Copied
HTML does not have the concept of repeating the header row on each page because an HTML page is one page, albeit it print over several. Print any HTML table you find from any source and I don't think you can make the header repeat. Hopefully Willam can confirm.
Because of that it is not possible for HTML to send that information to a Word document.
On my site there is a macro to find every table in a document. You could then amend that to apply that property to every table.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Hi,
I can partially confirm that. HTML does have the concept of table headers, captions, footers and content. When using a table that is set up correctly, most browsers will render the table header on every printed page:
<table>
Copy link to clipboard
Copied
William,
thanks for the infos, we posted at the same time so I missed you at first. I actually tried to insert a thead section and found that it did not work, but I did not understand that the reason was Robohelp removing it again..
Copy link to clipboard
Copied
Peter,
please excuse evidently I was unclear about my problem. Not Robohelp should repeat the table headings, Word should. All that is necessary for this is to mark the first row as a heading in Word. I have a macro that automatically turns all first rows of tables into headings, and then Word does the rest and automatically repeats them on all pages.
That is 50% of what I need to achieve, so I can actually solve this with my macro.
The other 50% is that the table headings should also take the formatting defined for table headings in the Word table style. This does not work, even if I run the macro. So instead of relying on mapping the table style I use dedicated inline styles for headings and body and rund the macro after publishing.
Copy link to clipboard
Copied
I understood you OK. What I was saying that because HTML did not understand table headers, it could convey that information when creating the Word table. In fact Willam has clarified that it is RoboHelp that does not understand table headers but the response remains the same.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
peter G: I can't find the table finder macro you mentioned on your site. looked in several of your pages and performed a search of your site using the keyword "table" Can you provide a link please?
Also, i have not tried creating a word template as yet, but can i just create a word template that has repeat header row in the table and then specify this template when i publish my robohelp project to word? i'm not sure how word handles table styles in template.
Copy link to clipboard
Copied
http://www.grainge.org/pages/authoring/word/word_macros.htm
Table is used widely on the site so not a good search term.
You cannot put Repeat Header Row in a template as a single feature.
The nearest you can come is that in RoboHelp 9 you can map your RoboHelp tables that you have defined in the CSS to tables that you have defined in Word as table styles. I am not sure offhand though whether when defining a Word table that you can specify Repeat Header Row, it may be something you have to do in each table that uses the style in a document.
Either way, the macro on my site can apply that setting to any table. The macro applies various style features and they may not be what you want. For example it applies border colours. You can amend or remove any style change that you do not want so you could amend it to only apply the header row definition.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Here's a repeat header row option provided by the microsoft office forum using Word 2010 (although it may work in lower versions). It entails modifying the word template you use to generate the Word doc.
Copy link to clipboard
Copied
I am interested to know whether that is theory or whether you have tested it and found it works. Not doubting you but I have seen other printed documentation theories crushed by RoboHelp.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
I am using the method described in my reply post successfully in my robohelp 9 project.
Copy link to clipboard
Copied
Thanks Jeff. I'll add that to the Printed Documentation topic on my site. Useful.
See www.grainge.org for RoboHelp and Authoring tips