is it possible to use Microsoft Word via ole?

is it possible to use Microsoft Word via ole?

Postby Giovany Vecchi » Sat Jun 20, 2009 12:45 pm

I am trying to do like this and it doesn't work
Code: Select all  Expand view

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 ?
User avatar
Giovany Vecchi
 
Posts: 223
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: is it possible to use Microsoft Word via ole?

Postby Antonio Linares » Sat Jun 20, 2009 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 115 guests