cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Built In View HTM function

SarahPrice
7-Bedrock

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 4

Hi, Sarah...

Try compose::compose_viewhtml(yourHTMfile, 1).

-Brandon 🙂


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 🙂
>
>
>

We use:
browse_url($url)

Thanks so much Brandon this did the trick perfectly.

Sarah
Announcements

Top Tags