AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Toolbar Button To Launch MS Word With A Specified Doc Open

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
pcgeek



Joined: 27 Jun 2011
Posts: 5
Location: Easley, SC USA

PostPosted: Mon Jun 27, 2011 2:44 am    Post subject: Toolbar Button To Launch MS Word With A Specified Doc Open Reply with quote

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
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5350

PostPosted: Mon Jun 27, 2011 6:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
pcgeek



Joined: 27 Jun 2011
Posts: 5
Location: Easley, SC USA

PostPosted: Tue Jun 28, 2011 4:01 pm    Post subject: Toolbar Button To Launch MS Word With A Specified Doc Open Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group