FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Html viewer for FWH?
Posts: 59
Joined: Tue Oct 11, 2005 01:39 AM
Html viewer for FWH?
Posted: Fri Feb 17, 2006 09: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"
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Html viewer for FWH?
Posted: Fri Feb 17, 2006 09: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
Posts: 218
Joined: Fri Oct 07, 2005 01:55 AM
Html viewer for FWH?
Posted: 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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Html viewer for FWH?
Posted: Sat Feb 18, 2006 01: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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Html viewer for FWH?
Posted: Sat Feb 18, 2006 03:58 AM

May convert hwgui's html view class into fwh .

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 59
Joined: Tue Oct 11, 2005 01:39 AM
Html viewer for FWH?
Posted: Mon Feb 20, 2006 04: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"
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Html viewer for FWH?
Posted: Mon Feb 20, 2006 09: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.

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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 59
Joined: Tue Oct 11, 2005 01:39 AM
Html viewer for FWH?
Posted: Tue Feb 21, 2006 01: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,

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"
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Html viewer for FWH?
Posted: Tue Feb 21, 2006 01:37 AM

Luis,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion