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.