Posted By
|
Message
|
Tristan Clark
Registered 28/07/2003
Points 159
|
29th September, 2004 at 18:28:51 -
Hey everyone,
I have an app i'm making that has buttons you can press to load an external Word document. The only way I can see how to do this is to use the 'load an external program' command from the event editor, which requires you to locate Word.exe on your computer. The problem is, the pathname for Word is bound to be different on other computers, which means they won't be able to get to the word documents. Is there any way to fix this, or use something else? Cheers!
n/a
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
29th September, 2004 at 18:37:40 -
If you're using MMF, there's probably a Word ActiveX control that you can put in. If not, just run C:\Windows\explorer.exe, with the filename as the command line. That might work (I don't know, I don't have MMF with me right now and I haven't tried the above method in MMF).
http://www.klik-me.com
|
Pabloa
Registered 29/09/2004
Points 70
|
29th September, 2004 at 19:24:45 -
I'm assuming your talking about Microsoft word, Not every computer has it and that could cause problems. Why not just use notepad?
n/a
|
Tristan Clark
Registered 28/07/2003
Points 159
|
29th September, 2004 at 19:28:42 -
Nah, it has to be Word unfortunately. Thanks for the explorer tip RapidFlash - I'll try that one out.
n/a
|
Tigerworks Klik Legend
Registered 15/01/2002
Points 3882
|
30th September, 2004 at 11:01:17 -
Or you can use the Vitalize object to open a file, which does the same as double clicking it in windows (would open Word with the right file).
The explorer method would only work if you used the file object to retrieve the windows directory, because it's different on Windows 2000 etc.
- Tigerworks
|
ShadowCaster Possibly Insane
Registered 02/01/2002
Points 2203
|
30th September, 2004 at 20:22:01 -
I think you can execute word just by typing "winword" in the "load an external program" dialog, as this is in the path environment variable. I know this can be done with my version of Word (XP) but I dont know how far back that compatibility is.
~Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
|
Tristan Clark
Registered 28/07/2003
Points 159
|
30th September, 2004 at 20:24:55 -
Ah, now that one's nailed it. Thanks Tiger! And just as the deadline was looming too...
n/a
|
|
|