Skip to main content
June 22, 2015
Question

JSX: Topicmanager vs. Linked Word files

  • June 22, 2015
  • 1 reply
  • 325 views

Usually the Topicmanager holds the HTM files in the same order as the ProjectManager displays them in RH.

But with linked Word files the list gets totally scrambled. RH still shows them right in the ProjectManager pane, but 'RoboHelp.project.TopicManager' returns them unsorted!

How can I retrieve the real sorted list?

I do not have a TOC at this stage - this is what I want to create.

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
June 22, 2015

Linked Word documents are presented in the order they were generated from the Word document. You can sort them if you parse the rhworddocs.apj yourself.

Why is it important to have the alphabetical list? Are you trying something specific?

June 23, 2015

Well, I want to create a TOC in the same order as the HTM files are sorted in the Word files. But the Topicmanager does not have any order anymore with linked word files. The order of the word files is clear to me, but I need their contents. The only workaround I found, is to create a temporary TOC which I use instead of the Topicmanager.

Willam van Weelden
Inspiring
June 24, 2015

That's indeed a problem. You can use the autoCraeteTOC method on the TOC object to create a TOC as well.

To get the order of generated HTML files, you will have to parse the rhworddocs.apj yourself. Take a look at my extendscript library. It has a few examples where I parse that file to give you an idea of how I do it.