Hi guys,
Invoking a URL in a browser without using Run() function. This approach does
not involve scanning the registry for default association for .HTML type but
lets PB do the dirty work for you.
This is the source code for doing exactly this...
It uses a new PB 6.5 Class User Object INET to invoke the default Internet
browser.
--------------------------------------------------------------
inet luo_my_inet
string ls_URL
ls_URL = "http://www.hotmail.com"
GetContextService("Internet", luo_my_inet)
luo_my_inet.HyperLinkToURL( ls_URL )
---------------------------------------------------------------
Try it out....
Bye and happy Powerbuilding :-),
Karthik S.
-----------------------------------------------------------------------
We need a reason to speak, but none to keep silent.
-Pierre Nicole
-----Original Message-----
From: Daniel Coppersmith <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: PFCSIG <[EMAIL PROTECTED]>
Date: Friday, February 25, 2000 9:52 AM
Subject: Re: PFCSIG Calling netscape browser to open an html page
I searched the registry to find which program is associated with a .HTML
extension (e.g. Netscape or Internet Explorer), then use a simply
RUN(ls_program + " " + ls_htmlPage). If I cannot resolve the program, I
tell the user, otherwise I let Windows do the work for me.
D
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 25, 2000 8:54 AM
Subject: PFCSIG Calling netscape browser to open an html page
>
>
> Hi all,
>
> I want to open an html page in a netscape browser. I was thinking of using
> ole control, but i could not find an ocx for netscape.
> Can any one pls. tell me where I can get one?? Is there any other way of
> doing this?????????????
>
> Thanks in advance for your help.
>
> Praful
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]