I have created an Task pane app for office 2013 in excel. It has few buttons and labels. Now I want to open a file location on my PC on clicking of the button. So please tell me the code for it as I'm new to java-script.
Asked
Active
Viewed 232 times
1
-
1See http://stackoverflow.com/questions/5534297/opening-a-file-in-local-file-system-in-javascript – igillis Apr 01 '15 at 15:10
1 Answers
2
As far as I know, there is no existing openFile API in JavaScript for Office, but you can use ajax to call wcf to get string from existing document and use Document.setSelectedDataAsync method to write the got string to the document.

user3531153
- 21
- 3