Page 1 of 1
Win10 IE problem?
Posted: Wed Jul 28, 2021 11:07 am
by richard-service
Hi,
I use this codes in Win10 IE and appear error message below:
DOCUMENT: No exported method
in Windows7 IE no problem.
Anyone can help it
Re: Win10 IE problem?
Posted: Wed Jul 28, 2021 12:13 pm
by Otto
Richard,
Is Internet Explorer installed?
Are the security settings the same?
Best regards,
Otto
Re: Win10 IE problem?
Posted: Wed Jul 28, 2021 3:56 pm
by Natter
oDk:=oWnd:aControls[nn]:GetProp("Document")
It works perfectly with W10
Re: Win10 IE problem?
Posted: Thu Jul 29, 2021 6:41 am
by richard-service
Otto wrote:Richard,
Is Internet Explorer installed?
Are the security settings the same?
Best regards,
Otto
Yes, I installed IE 11 and setting.
Re: Win10 IE problem?
Posted: Thu Jul 29, 2021 9:27 am
by richard-service
Hi
Call IE function code below:
Code: Select all | Expand
DEFINE WINDOW oWnd FROM 0,0 TO 0,0 TITLE "特定地區旅遊及接觸史查詢"
oIE:=CreateObject("InternetExplorer.Application")
IF oIE<>Nil
oIE:Visible :=.T.
oIE:TheaterMode:=.T.
oIE:AddressBar:=.T.
oIE:ToolBar :=.T.
oIE:FullScreen=.F.
oIE:Silent =.T.
oIE:Navigate2(cHOSTIP)
Do While oIE:Busy
SysWait(1)
SysRefresh()
Loop
Enddo
hWnd:=oIE:hWnd
ShowWindow(hWnd, SW_MAXIMIZE )
BringWindowToTop(hWnd)
ENDIF
ACTIVATE WINDOW oWnd ICONIZED ON INIT BuildTimer()
Re: Win10 IE problem?
Posted: Thu Jul 29, 2021 10:33 am
by Otto
Richard,
I am not certain, but is InternetExplorer the same as Shell.Explorer?
I use it like this:
oActiveX = TActiveX():New( oDlg, "Shell.Explorer.2",10,10,400,200 )
Best regards,
Otto
Re: Win10 IE problem?
Posted: Fri Jul 30, 2021 2:35 am
by richard-service
Otto wrote:Richard,
I am not certain, but is InternetExplorer the same as Shell.Explorer?
I use it like this:
oActiveX = TActiveX():New( oDlg, "Shell.Explorer.2",10,10,400,200 )
Best regards,
Otto
Hi, Otto,
Thanks for your help. But it's not work and appear message below:
DOCUMENT: No exported method
Re: Win10 IE problem?
Posted: Fri Jul 30, 2021 10:06 am
by Otto
Hello Richard,
I tested with the attached code on my brand-new Surface.
I have to check allow and then all is working.
Interesting:
I also tested with
oIE := TActiveX():New( NIL, "Shell.Explorer.2",10,10,600,400 )
In this case, it seems that scripts are blocked. I see the web page but CSS and JS do not work.
Code: Select all | Expand
#include "FiveWin.ch"
function main()
local oDlg
local oIE
local cHOSTIP := "https://www.modharbour.club"
DEFINE WINDOW oWnd FROM 0,0 TO 0,0 TITLE "????????????"
// oIE := TActiveX():New( NIL, "Shell.Explorer.2",10,10,600,400 )
oIE:=CreateObject("InternetExplorer.Application") // OK
IF oIE<>Nil
oIE:Visible :=.T.
oIE:TheaterMode:=.T.
oIE:AddressBar:=.T.
oIE:ToolBar :=.T.
oIE:FullScreen=.F.
oIE:Silent =.T.
oIE:Navigate2(cHOSTIP)
Do While oIE:Busy
SysWait(1)
SysRefresh()
Loop
Enddo
hWnd:=oIE:hWnd
// ShowWindow(hWnd, SW_MAXIMIZE )
BringWindowToTop(hWnd)
ENDIF
ACTIVATE WINDOW oWnd ICONIZED ON INIT msginfo("timer")
return(.T.)

Re: Win10 IE problem?
Posted: Fri Jul 30, 2021 10:17 am
by Otto
...
CreateObject function for “Shell.Application” vs “InternetExplorer.Application”
https://stackoverflow.com/questions/305 ... pplication
Re: Win10 IE problem?
Posted: Fri Jul 30, 2021 11:51 am
by richard-service
Hi, Otto
I will check web data for it.