Question about OLE and Word

Question about OLE and Word

Postby driessen » Thu Nov 10, 2022 8:23 am

Hello,

I open some Word-documents this way :
Code: Select all  Expand view
wOle  := TOleAuto():New("Word.Application")
wDoc1 := Wole:Documents:Open("document1.docx")
wDoc2 := Wole:Documents:Open("document2.docx")

This just works fine. Both documents are opened in one Word-session

Two questions.

1. How can I read in my application which Word-document is the active one?
2. How can I change from one document to another in my FWH-application?

Thanks a lot in advance.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.02 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc77
User avatar
driessen
 
Posts: 1396
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 49 guests