Hi Georg,
I have not worked much with custom help. I did find this from an old case. Maybe it could be used as a guide.
When I run this VBA code it does open the chm file but it does not open to the topic. Can you try it with one of your .htm locations in your chm file?
>> >>
When providing a valid absolute path, DisplayHelpTopic is working as expected, I used the 2011 help in order to test your example:
Sub DisplayCreateInPlaceHelp()
Dim filename As String
filename = "C:\Program Files (x86)\Autodesk\Autodesk Vault 2016 SDK\docs\VaultSDK.chm"
If (Not FileExists(filename)) Then
Exit Sub
End If
Dim topic As String
topic = "/WS1a9193826455f5ff5f7e8f111d48518712e24-reference.htm"
Dim HelpManager As HelpManager
Set HelpManager = ThisApplication.HelpManager
Call HelpManager.DisplayHelpTopic(filename, topic)
End Sub
Private Function FileExists(file As String) As Boolean
On Error GoTo Error
'get the file attributes, and make sure what
'is being passed isnt a directory
FileExists = (GetAttr(file) And vbDirectory) = 0
Exit Function
Error:
FileExists = False
End Function
<< <<
Thanks,
Wayne
Wayne Brill
Developer Technical Services
Autodesk Developer Network