Html viewer for FWH?

Html viewer for FWH?

Postby Luis Krause » Fri Feb 17, 2006 9:32 pm

Hello

Has anyone developed a FWH class that can view html without depending on any browse (like a sample René posted some time ago using OLE to load IE)?

I'm looking for a standalone viewer so show html file to users.

Thanks!
"May the Source be with GNU"
User avatar
Luis Krause
 
Posts: 59
Joined: Tue Oct 11, 2005 1:39 am
Location: Vancouver, Canada

Postby Antonio Linares » Fri Feb 17, 2006 9:39 pm

Luis,

You may review samples\webexp.prg using ActiveX or do you mean you don't want to use an Explorer alike app ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41447
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Taiwan » Fri Feb 17, 2006 10:39 pm

Hello Antonio,

I think Luis Krause mean don't use any IE or web browse to display html file.

Regards,

Richard
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Postby James Bott » Sat Feb 18, 2006 1:58 am

Luis,

There is one: http://www.subsystems.com

But it is expensive, US$389, and you also have to purchase their editor for $539.

May I ask why you are looking for a standalone? Do you know that you can turn off the toolbar, address bar, and status bars of IE so it doesn't look like IE?

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby ShumingWang » Sat Feb 18, 2006 3:58 am

May convert hwgui's html view class into fwh .
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Luis Krause » Mon Feb 20, 2006 4:44 pm

Antonio, James, Richard and Shuming

FWH AcitiveX approach might be all we need. The idea of having a non-browser dependent html viewer was just to show the user html files, but not wanting to give them web access from within the app for security reasons.

Thank you all for the input... time to analize the best solution.

Regards,
"May the Source be with GNU"
User avatar
Luis Krause
 
Posts: 59
Joined: Tue Oct 11, 2005 1:39 am
Location: Vancouver, Canada

Postby James Bott » Mon Feb 20, 2006 9:11 pm

Luis,

The idea of having a non-browser dependent html viewer was just to show the user html files, but not wanting to give them web access from within the app for security reasons.


Then I think this is all you need.

Code: Select all  Expand view
Function RunExpl(cURL)
local hE

hE := CreateOleObject("InternetExplorer.Application")
OLESetProperty(hE,"Visible", .T.)
OLESetProperty(hE,"ToolBar", .F.)
OLESetProperty(hE,"StatusBar", .F.)
OLESetProperty(hE,"MenuBar", .F.)
OLEInvoke(hE,"Navigate",cURL)

SysRefresh()

return nil


James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Luis Krause » Tue Feb 21, 2006 1:28 am

James:

I have to check with Brian what exactly he's looking for, but your sample certainly should do the trick.

Any reason you're not using TOleAuto() class? I.e.:

Function RunExpl( cURL )
local hE

hE := TOleAuto():New("InternetExplorer.Application")
hE:Visible := .T.
hE:ToolBar := .F.
hE:StatusBar := .F.
hE:MenuBar := .F.
hE:Navigate( cURL )

return nil


James Bott wrote:Luis,

Code: Select all  Expand view
Function RunExpl(cURL)
local hE

hE := CreateOleObject("InternetExplorer.Application")
OLESetProperty(hE,"Visible", .T.)
OLESetProperty(hE,"ToolBar", .F.)
OLESetProperty(hE,"StatusBar", .F.)
OLESetProperty(hE,"MenuBar", .F.)
OLEInvoke(hE,"Navigate",cURL)

SysRefresh()

return nil


James


Regards,

Luis Krause
"May the Source be with GNU"
User avatar
Luis Krause
 
Posts: 59
Joined: Tue Oct 11, 2005 1:39 am
Location: Vancouver, Canada

Postby Antonio Linares » Tue Feb 21, 2006 1:37 am

Luis,

Class TOleAuto() is just a wrapper on top of those functions.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41447
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 63 guests