I am creating a Office Task Pane app and running it using MS Word 2013. As i run the app it opened a task pane in Word with a document named "Document1.docx". How can i get this file name "Document1.docx" using Office 2013 Javascript API? If this is not achieve by Office Javascript API, is there any other technique to achieve this with in a Office 2013 task pane app for word?
Office 2013 apps: How to get the name of the file using Office 2013 Javascript API
1.1k Views Asked by Wahaj Ahmed Ansari At
1
There are 1 best solutions below
Related Questions in OFFICE365
- Building Daemon or Service Apps with Office 365 that doesn't require sign in
- Responding to an Office 365 event invite via REST
- How to import meetings into office365 (EWS and Powershell?)
- Why Apps for Office options is disabled in my outlook 2013 instance
- Erro uninitialized constant Devise::OmniAuthCallbacksController
- Rest API to upload an image with customized metadata in office 365
- Developing Syntax app SharePoint Online PrismJS
- Office 365 Rest API Access to public folders
- In a Office 365 Mail App how to know item belongs to which folder(Inbox/Draft/Sent Items/Deleted Items)?
- Office 365 Exchange Mailbox Properties
- office 365 api integration in visual studio 2012
- python email subject \r\n
- Querying Office 365 Service Communications API with Python
- Why does the Office 365 OutlookServices (v1.0.34) .Net client library hang indefinitely?
- Excel Macros not working in CatiaV5
Related Questions in OFFICE-2013
- Office Web App securing access to documents
- Unable to open mailItem because of outlook interface..!
- Disable auto resize of custom button groups in the Ribbon
- Building string in Excel VBA to output to Word is returning "False" instead of string
- How to make Exchange 2013 Mail Apps only display in OWA
- Procedure to perform a web search (Bing) in Office 2013 task pane app
- MS Project 2013 - Add-in vs App for Office
- Add a service to "Share" tab in Word 2013
- EPPlus: How to style merged cells?
- Access 2013 breaks UniqueTable functionality
- add-in communicate between instance
- Deploying Office 2013 Addins on Win Server 2012
- how to publish task pane app to an organization app catalog - office 2013 apps
- Excel 2013 64-bit VBA: Clipboard API doesn't work
- Modify ribbon and emails view with mail app for Outlook
Related Questions in APPS-FOR-OFFICE
- How to get User's actual Email Id in Outlook Add-in Integration
- Errors encountered when trying to create Apps for Office in VS2013
- Is it possible to search a Word document and return all the tables?
- Pass credentials or token from mail app to webserver to use with EWS Managed API ExchangeService class
- What browser / browser engine do Office Add-ins use?
- How can I read Excel custom properties in Office Javascript API?
- How can I get the current Excel file in Office JavaScript API?
- Office.js getFilePropertiesAsync fails on second call in Angular.js
- Place comments through Office Javascript API 1.1
- BindingDataChanged doesn't work in Excel Web App
- Apps for Office 2013: Cannot load custom properties in an outlook item if it is in a shared calendar
- Apps for Office: my task pane app doesn't get the licensing '?et=' license token
- Communicating VBA with Apps For Office 2013
- Office Web applications (Word, Excel, Powerpoint) add-ins dropping cookie in IE11 on Windows 7
- Apps for Office: installing app through .exe install file
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found solution of this problem here.
http://social.msdn.microsoft.com/Forums/en-US/appsforoffice/thread/2cf80790-7088-4568-813b-7b645a8ebd2e?prof=required
You can use the Javascript API and get the Office.context.document.url property, but this comes with caveats - see the link for more details.