FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour is it possible to use Microsoft Word via ole?
Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
is it possible to use Microsoft Word via ole?
Posted: Sat Jun 20, 2009 12:45 PM
I am trying to do like this and it doesn't work
Code (fw): Select all Collapse
Define Window oWndWord from 0,0 to 600,800 pixel Title "Teste"

   oWordView := TActiveX():New( oWndWord, "Word.Application",;
                                              0,0,oWndWord:nWidth(),oWndWord:nHeight())

   oWndWord:oClient := oWordView

Activate Window oWndWord


Could anybody explain because it doesn't work ?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: is it possible to use Microsoft Word via ole?
Posted: Sat Jun 20, 2009 02:35 PM

Giovany,

We have not been able to make it work as an ActiveX. We don't know why yet.

You can access Word using TOleAuto, but you will not have its window inside yours.
There are many examples in these forums:

viewtopic.php?p=69228#p69228

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion