WPCubed Product Support

Get file name of word doc loaded?

currentfile := wprichtext1.Memo.FileLoadNameAndPath;

When using afterexecute of wpaopen default action, the code above returns the loaded file if you open an rtf file, but if you open a word file it returns nothing.

How do I get the file name and path from the wpaopen dialog action?
thanks, -d

#1 ♥ 0
4.4k Views 2 users read 1 min

I worked around this by using my own open dialog action instead of the wpaopen action.

#2 ♥ 0
support

The file which was loaded last time is stored in LastFileName. If that changes the event OnChangeLastFileName is triggered.

#3 ♥ 0
This category is archived. No new posts are possible.