Graham, I've used this chunk of code to open Internet Explorer from a
MapBasic program and go directly to a URL.  You can open an HTML file
locally as well.
 
Good Luck. 
Declare Sub OpenURL

Sub OpenURL

    Dim Exe, URL, CmdLine as String

    Exe = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"

    URL = " www.mapinfo.com <http://www.mapinfo.com> "

    CmdLine = Exe + " " + URL

    Run Program CmdLine

End Sub

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 24, 2000 7:06 AM
To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Subject: Re: MI Opening HTML pages within MapInfo


 
I've seen these programs where you can click on a map object and it links to
a url. What we really want to do is write html to a file from within an MBX
to create a formatted report (that's the easy bit!), then to open that html
page in a web browser without having to exit the MapBasic application - in
other words, once the file is written, not have to manually go into Explorer
to view the report. We wrote a short DLL in Visual Basic and have tried
calling this, but with no success (VB skills not too hot!).
 
Graham
 
 

-----Original Message-----
From: Andy < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
To: Graham Smith < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
Date: 24 March 2000 12:04
Subject: Re: MI Opening HTML pages within MapInfo


have you looked at linkplus - i think it's available at spatialnews.com, and
you might be lucky enough to get the code too to look at.
 

----- Original Message ----- 
From: Graham Smith <mailto:[EMAIL PROTECTED]>  
To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
Sent: Wednesday, March 22, 2000 1:27 PM
Subject: MI Opening HTML pages within MapInfo

Dear List,
 
I want to write something in Mapbasic which would allow you to open HTML
pages within MapInfo.
 
Can you help at all.
 
 
Regards,
 
 
Jackie

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to