by Ari » Fri Jul 21, 2006 11:14 am
// \fwh27\samples\excel.prg
// Using Microsoft Excel ActiveX
#include "FiveWin.ch"
function Main()
local oWnd, oActiveX
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
// Warning: You may need a different name based on your installed Office version
oActiveX = TActiveX():New( oWnd, "OWC11.Spreadsheet" ) <<--- onde eu pego este nome ? eu tenho o Office XP
oWnd:oClient = oActiveX // To fill the entire window surface
ACTIVATE WINDOW oWnd
return nil