| View previous topic :: View next topic |
| Author |
Message |
pcgeek
Joined: 27 Jun 2011 Posts: 5 Location: Easley, SC USA
|
Posted: Mon Jun 27, 2011 2:44 am Post subject: Toolbar Button To Launch MS Word With A Specified Doc Open |
|
|
I have been able to add a button to launch Word, but I get an error when I try to specify a document to open.
Please tell me how to do this.
Thanx,
Randy |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Mon Jun 27, 2011 6:40 pm Post subject: |
|
|
| Code: | | "Open Word document" Exec(`"c:\Program Files\Microsoft Office\Office10\WINWORD.EXE" "c:\File.doc"`) Icon(0) |
or
| Code: | | "Open Word document" Exec(`rundll32.exe shell32,ShellExec_RunDLL "c:\File.doc"`) Icon(0) |
|
|
| Back to top |
|
 |
pcgeek
Joined: 27 Jun 2011 Posts: 5 Location: Easley, SC USA
|
Posted: Tue Jun 28, 2011 4:01 pm Post subject: Toolbar Button To Launch MS Word With A Specified Doc Open |
|
|
Thanx much,
That did it. I had it all right except for the single quotes around everything inside the (). Didn't know about those. Is that type of thing documented anywhere?
BTW, I can't get the help files to work. Every time I try to open them I get the following error:
"Navigation To The Web Page Was Cancelled".
Any idea why?
Also, the following works if you put the Word doc in the AkelPad directory:
# User's Manual
"User's Manual" Exec(`rundll32.exe shell32,ShellExec_RunDLL "%a\AkelPad4-User'sManual.docx"`) Icon("Word.ico")
Thanx,
Randy
[/img] |
|
| Back to top |
|
 |
|