FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about OLE and Word
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Question about OLE and Word
Posted: Thu Nov 10, 2022 08:23 AM
Hello,

I open some Word-documents this way :
Code (fw): Select all Collapse
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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion