Hi there. I know this error has been around before, but I have not found any solution to fix my problem. I imported a Robohelp x5 project into Robo 9 HTML, and everything seemed to import fine. I compiled the project, and everything works except for when I try to go to a topic by clicking on its TOC link. I then get the "hh_get_win_type has not been specified" error, and if I click on the message, it'll eventually go away and then the topic will correctly open. (Any links in the main frame work properly with no error message.) Obviously I need to fix this before sending it out. The specific window it mentions is not used in the project settings any more, so I just can't delete it. Does anybody have a suggestion for this? Thanks, Mark.
Perhaps the TOC entries are still using the old window definition? The instructions are for RH6 but I assume RH7 will be similar.
Right-click on a TOC entry and select Properties. Go to the Advanced tab. Does Window list the old window?
If so, the easiest way to fix would probably be to open the hhc file in a text editor and do a search and replace on the old window name.
Yes in the output help file, the advanced properties lists the "default window" as "X" where X is the window name that is not used any more, and the one that is causing the error.
I searched the hhc file for this offending X name, and it's not there at all.
For the TOC properties for each entry in the Robohelp project, I can see that the window to be used is "default" , which of course is X, which becomes the error. I tried changing one of these from the "default" window to the actual window name I am using (which is listed there as well as the deafult) and then the error does not show for that particular entry in the output TOC. The rest of the TOC entries are still using the default though, and causing the error. I suppose I can manually change each one.... but I'd like to know a better and quicker way. It does not appear that I can do a multi-edit for the TOC window properties. Or can I ?
Another place this is set for the project is in the Single Source Layout. Is the Default Window field set to "Default" in that location also?
Something you mentioned in your original post is begging a question. You said you couldn't delete the window from the project despite it not being used anywhere. Is that because it won't let you, or some other reason. If it won't let you, there must still be a reference to it somewhere in your project. You could try deleting your projectnam.cpd file and reopening the project.
|The RoboColum(n)||@robocolumn||Colum McAndrew|
The reason I cannot delete the old window name from the project is because I do not see the window listed in the Robohelp Project Manager. Only the new correct window name is listed. Perhaps I just need to associate this new window to be the default window. But so far I have not been able to see where that is done. I have of course specified that the project is to use the new window name in the output, but it still defaults to the old window name for the TOC.
When you examine the Single Source Layout recipe for the CHM layout, click the drop-down and select your window.
Helpful and Handy Links
Looks promising, thanks. I am on the road right now and don't have the project with me, but will try that on Monday, if the hurricane allows me to fly home Sunday.....
Rats, that did not work. I had already specified the default window to be the one I wanted, but the output project keeps looking for the old one, when I click on anything in the TOC. And then it gives the error.
I am going to just specify the new window name for every TOC entry, which will take some time, but it'll fix the problem I think.
Okay, one more thought. There is a space to specify the default window for the TOC and Index. I think under the Advanced Settings Edit button in the screenshot posted previously. See if Default Window in the tabs in that dialog box have the incorrect window selected.
DING DING DING. This fixed the problem. Thank you very much !!!!