If I define window for ActiveX, work fine.
Code: Select all
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
oActiveX = TActiveX():New( oWnd, "oa.oactrl.1" )
oWnd:oClient = oActiveX
oActiveX:Do( "ShowToolBars", .t. )
oActiveX:Do( "Open", "c:\計算.xls" )
ACTIVATE WINDOW ownd on init oActiveX:Do( "Open", "c:\計算.xls" )
Code: Select all
DEFINE DIALOG oDlg RESOURCE "D_DR_WIN_TestActiveX"
REDEFINE ACTIVEX oActiveX ID 10000 OF oDlg ; PROGID "oa.oactrl.1"
ACTIVATE DIALOG oDlg CENTER on init init oActiveX:Do( "Open", "c:\計算.xls" )
Regards,
Richard