Skip to main content
10-Marble
April 5, 2011
Question

Built In View HTM function

  • April 5, 2011
  • 4 replies
  • 881 views

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
    April 5, 2011
    Hi, Sarah...

    Try compose::compose_viewhtml(yourHTMfile, 1).

    -Brandon 🙂


    1-Visitor
    April 5, 2011
    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 🙂
    >
    >
    >
    1-Visitor
    April 5, 2011
    We use:
    browse_url($url)

    10-Marble
    April 5, 2011
    Thanks so much Brandon this did the trick perfectly.

    Sarah