Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name of currently opend word document
Message
From
07/09/2001 04:57:17
 
 
To
07/09/2001 04:46:52
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00553637
Message ID:
00553639
Views:
13
Hi!

Exactly as you typed! Document object in Word have property name that, accordingly to help file, contains filename of the document.

Why you need to use FindWindow? For what you require HWND of the Word window? Caption of the Word window changes across versions of MS Office, so this is not a reliable way. There is a nother way to track MS Word windows opened ffrom VFP by CREATEPBJECT(), with use of other API functions.

>how can i check the name of a currenly opend worddoc.
>i need the name for getting a hanlde of the window with findwindow.
>if the currently opened document is a offer document i want to send item data from a foxpro item selection form .
>
>i there something like 'oword.activedocument.name' ???
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform