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
- Can you programmatically generate a link to open a Word document and navigate to a particular location within it (preferably a comment)?
- Excel dynamically calculate cost of products based on bill of materials (BOM) and purchase price history
- Microsoft Office 365 problem cannot open a blank excel document
- In OfficeScript, how can I make it return the number of cells with a red background?
- Visual Studio write to Office 365 word
- Audit a share Excel workbook
- Copy paste a single value from within a cell to another cell
- Highlight column based on current date and time
- Share Outlook calendars with all members of specific security group
- Python IMAP4 keeps throwing this error when I'm connecting to Outlook. Has anyone seen this error before?
- IMAP configs for Outlook using Mail-listener
- How to add a new menu item on OneDrive action menu?
- Unable to locate fields in Microsoft Access
- Download Sharepoint aspx pages as pdf using python
- VBA - detect if user is running on 365
Related Questions in OFFICE-2013
- Count unique values in column based on another column (Microsoft Excel 2013)
- This question seems stupid but is that a calader form that i may include in my vba form? thx
- C++ Office Excel Plugin Range QueryInterface "E_NOINTERFACE" Problem
- Automatic generation of a powerpoint presentation from a checkbox menu
- Why can't the .ico file be inserted into the Userform Image Object in Excel 2013 VBA?
- Sort method of Range class fails only on certain PCs accessing network file
- Office 2016 VBA fails to open Internet Explorer shell window but works in Office 2013
- Lines inside svg file not appearing in visio
- Need to Add Context menu on outlook ReportItem (In terms of outlook users 'Read Receipt')
- LabVIEW Report Generation returns error code (-2147319779) when downgraded from MS Office 365 to Office 2013
- Open Office JS Template in same Excel Sheet
- download a word document using Apache POI generates a corrupted document
- Macro that checks how many copies are printed or blocks printing except by macro
- Matlab Warnings with "xlswrite" and "xlsread"
- Word 2013 "this is not a valid style name"
Related Questions in APPS-FOR-OFFICE
- Excel add-in with shared runtime - unhandled exception on displayDialogAsync
- Cannot debug add-in using F12Chooser in 1903
- Get all images in a Word document
- Icon does not appear for Outlook Web add in for Outlook 2016 on Windows
- Office Web applications (Word, Excel, Powerpoint) add-ins dropping cookie in IE11 on Windows 7
- Is it possible to search a Word document and return all the tables?
- How to detect old doc format in Word js api
- How to get User's actual Email Id in Outlook Add-in Integration
- Restrict user from closing outlook mail app, while some action is in progress
- How to open Select Data Dialogue from office content add in (Content App)
- How should paragraphCollection.first be used in the word javascript api
- Showing Task Panes
- Excel JS Add-In works in Excel but not Excel Online
- Excel add in (Content app) How to get rid of top right arrow
- Is addin (excel content add-ins) resize event supported/available in office.js 1.0 or 1.1?
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 # Hahtags
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.