Home > Archive > PowerBuilder > March 2004 > PowerBuilder, Word and OLE
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PowerBuilder, Word and OLE
|
|
| Pascal 2004-03-27, 12:22 am |
| I launch Word from my PB application. When the Word document is
saved (Save As menu), how can I get its full path and file name ?
Thank you very much !
| |
| Thomas Humburg 2004-03-27, 12:22 am |
| Pascal wrote:
> I launch Word from my PB application. When the Word document is
> saved (Save As menu), how can I get its full path and file name ?
>
Write a Word Macro which triggers an event (e.g. pbm_custom event/
windows user event). Catch this event in your PB Application and get the
filename from Word via OLE.
I dont see any other way for Word how to tell the PB Application that it
just saved a File. You can also try a timer event in your PB App and ask
Word (e.g. every 5 seconds) to give you the name of the actual Document
(ActiveDocument.Fullname).
TH
|
|
|
|
|