Re: MI Opening HTML pages within MapInfo

2000-03-25 Thread Graham Smith




Trey,

brilliant - it works now! made my day

best wishes from Graham

(P.S thanks also to everyone else who responded to this 
one - opening html pages from mapinfo. Skim below to get the gist)

-Original Message-From: 
Trey Pattillo [EMAIL PROTECTED]To: Graham Smith 
[EMAIL PROTECTED]Date: 
25 March 2000 20:30Subject: 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...

DIMsHtml AS String
sHtml=c:\htmlview.exe 
/f=+chr$(34)+c:\webdoc.htm+chr$(34)+ 
/navshow
RUNPROGRAM 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 anduse numpad to enter number to 
verify]


Trey Pattillo[EMAIL PROTECTED]http://www.wap3.com

- Original Message - 
From: 
Graham 
Smith 
To: Trey Pattillo 
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 WindozeRun 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:41Subject: 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..


Trey Pattillo[EMAIL PROTECTED]http://www.wap3.com

- Original Message - 

From: 
Graham Smith 
To: [EMAIL PROTECTED] 
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



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

Re: MI Opening HTML pages within MapInfo

2000-03-24 Thread Graham Smith





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]To: 
Graham Smith [EMAIL PROTECTED]Date: 
24 March 2000 12:04Subject: 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 
To: [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


RE: MI Opening HTML pages within MapInfo

2000-03-24 Thread James Marlow



Hi 
Graham

Well, 
you are going down the right track (does that translate to the Queen's English?) 
with the HTML output - it's a great way to make report. VB, however, will not do 
the job for dll's - it produces ActiveX dll's which are not the same as a 
standard dll - and MB requires a standard dll. You have a couple of 
options:

1) Use 
Delphi (or Visual C++ if you have a someone who codes in it) to write the dll. 
Delphi is rather similar to VB (the language is Pascal instead of BASIC) but it 
has the capability to write true dll's. It also includes an HTML viewer control 
so you could actually just pop up a window or dialog containing the report 
output - a potentially neater solution than spawning another copy of a web 
browser. Delphi is relatively inexpensive, fairly easy to learn, and there are 
examples out there of making it work with Mapinfo - check out theWhite 
Papers section of http://www.directionsmag.com for some 
samples and instructions.

2) If 
you must program in BASIC then check out PowerBasic at http://www.powerbasic.com - it's not a true 
visual development environment (although it does have a GUI builder that does a 
lot) but it _does_ produce true dll's. It's also a pretty good development 
environment and it's output is blindingly fast at a lot of things. Programs 
written in PowerBasic frequently run rings around similar code written in Visual 
Basic. I personally prefer Delphi, but that's because I learned Pascal a long 
time ago and then I was developing MB dll's in Delphi long before I ever heard 
of PowerBasic.

3) I 
_think_ you can issue a command through MB to start an external program - and 
you _might_ be able to do this with either Internet Explorer or Netscape 
Navigator. However, this is not exactly the best solution out there and it is 
klunky at best).

Good 
luck!

James

James L Marlow Director, Geographic Information Systems 
Channel Marketing Corporation 
15032 Beltway Drive Dallas, Texas 75001 
Telephone 1 (972) 858-9600 extension 
331 Facsimile 1 (972) 
858-9601 email: 
[EMAIL PROTECTED] www: http://www.cmcus.com 


  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, March 24, 2000 7:06 
  AMTo: [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]To: 
Graham Smith [EMAIL PROTECTED]Date: 
24 March 2000 12:04Subject: 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 
  To: [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