in
Innovasys Logo

HelpStudio Light

Last post 08-27-2008 7:50 AM by Richard Sloggett (Innovasys). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-26-2008 2:28 PM

    • John
    • Top 150 Contributor
    • Joined on 11-09-2007
    • Posts 1

    HelpStudio Light

    First, just wanted say what a neat product this is. I was looking over some of the technical guides and such combined with stuff on MSDN. I have built a vb2005 project that I am using the code below to reference a built assembly from HelpStudio Light. I can get my help file to display, all the individual links. When I try to update the contents section of the MS HELP2.0/MS Document Viewer, I get an exception error.

    I have tried using just the name space, the hxt file, and the original page but nothing seems to work.  I guess what my question is, what is the link to the TOC so that I can have VB pass tis to MS Document Viewer. Any help would be greatly appreciated.

    ----

    Sub HelpObject()

    'Declares an object that will receive the instance of the Help Window

    Try

    Dim dte As EnvDTE.DTE

    dte = CType(System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.8.0"), EnvDTE.DTE)

    'Retrieves the instance of the Help window

    helpObj = dte.Help

    'Shows the topic specified in URL

    helpObj.displaytopicfromurl("ms-help://NameSpace/NameSpace/NameSpace_Application.html")

    helpObj.contents()

    helpObj.SyncContents(
    "ms-help://NameSpace/NameSpace/NameSpace_Application.html")

    Catch ex As Exception

    MessageBox.Show("ERROR: " & ex.Message.ToString())

    Finally

    helpObj = Nothing

    End Try

  • 08-27-2008 7:50 AM In reply to

    Re: HelpStudio Light

    What is the exception that you are seeing? At first look your code seems fine, with the exception that the Url would be of the format:

    ms-help://<NameSpace>/<FileId>/<Topic>.html

    Richard Sloggett
    Innovasys
    http://www.innovasys.com
Page 1 of 1 (2 items)