Skip to main content
10-Marble
Apr 5, 2011 3:16 PM UTC
Question

Built In View HTM function

I'm trying to add a new item under the Help menu that will open an HTM file.


I know that Arbortext has a built in view_pdf function and when I call it it does open the .htm file that I need within the web browser. However, I was wondering if there was a built-in view_htm or view_html function?


Thanks in advance for your response.

    4 replies

    1-Visitor
    Apr 5, 2011 3:59 PM UTC
    Hi, Sarah...

    Try compose::compose_viewhtml(yourHTMfile, 1).

    -Brandon 🙂


    Translate
    1-Visitor
    Apr 5, 2011 4:14 PM UTC
    Alternately, if you're using Java and want to call the default
    browser, you can use:

    String yourUrl = "file:///c:/somedir/somefile.html";
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + yourUrl);



    On Tue, Apr 5, 2011 at 11:59 AM, Brandon Ibach
    <brandon.ibach@single-sourcing.com> wrote:
    > Hi, Sarah...
    >
    > Try compose::compose_viewhtml(yourHTMfile, 1).
    >
    > -Brandon 🙂
    >
    >
    >
    Translate
    1-Visitor
    Apr 5, 2011 4:23 PM UTC
    We use:
    browse_url($url)

    Translate
    10-Marble
    Apr 5, 2011 4:41 PM UTC
    Thanks so much Brandon this did the trick perfectly.

    Sarah
    Translate