-----Original Message-----
From:
Trey Pattillo <[EMAIL PROTECTED]>
To: Graham Smith
<[EMAIL PROTECTED]>
Date:
25 March 2000 20:30
Subject: Re: MI Opening HTML pages within
MapInfo
hello Graham,
Thanks for the *ad* back to the list
:-)
IT'S >>>>> RUN PROGRAM
filename
read on
anyway.....................
I need to put this in or explain better in the
_readme
Definately if spaces exist in the file name
> /f=c:\my docs\doc1.htm
then you *must* put quotes around the file name
> /f="c:\my docs\long document file.htm"
Just put the quotes in
anyway..................
for MB [vb for that matter too] trying to
use
/f=""""c:\docs\doc1.htm""""" in
order to get the imbeded quotes is a real pain I use a variable say
sHtm
you can do this from the mapbasic
window...........
DIM sHtml AS String
sHtml="c:\htmlview.exe
/f="+chr$(34)+"c:\webdoc.htm"+chr$(34)+"
/navshow"
RUN PROGRAM sHtml
UNDIM sHtml
don't forget space between " and
/navshow..............needs space before all parameter callers
chr$(34) is using the ascii code [you can
hold down Alt key and use numpad to enter number to
verify]
----- Original Message -----
Sent: Saturday, 25 March, 2000
09:16
Subject: Re: MI Opening HTML pages
within MapInfo
Hi Trey,
Thanks very much for this. It is EXACTLY what I was
looking for which is great.
I'm just having a problem actually running it from
within my MBX. If I put:
C:\HTMLView.exe /f=C:\WebDoc.htm
in the Windoze>Run box it works fine. But in the
MBX, the line:
run application "C:\HTMLView.exe
/f=C:\WebDoc.htm"
gives me the following error:
Error 22 opening file WebDoc.htm
I don't suppose you might have any idea why this is?
I'm darned if I know. It also doesn't seem to like opening urls in this
way.
Hope you can advise, and thanks again.
Cheers,
Graham
-----Original
Message-----
From: Trey Pattillo <[EMAIL PROTECTED]>
To:
Graham Smith <[EMAIL PROTECTED]>
Date:
25 March 2000 00:41
Subject: Re: MI Opening HTML pages
within MapInfo
Hello,
I have HtmlView available for download
from my website.
You can call it with a varity of
parameters:
1) turn navigator bar on/off [simple
back/forward/stop/refresh/url]
2) lock out link jumps [does not work
if link is java/script]
you just do a run
application "htmlview.exe /Fwebdoc.htm [other
parameters]
written in Delphi5, so there is no
baggage to install and is very compact, about 150k I
think.......
Hope this
helps......................
----- Original Message -----
Sent: Friday, 24 March,
2000 07:06
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
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
-----
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