Can someone please let me know if there is any way that I could retrieve the paragraph number from a paragraph or the range object using office word js api? Working on implementing selections based on data that I get from a back end service, which provides both paragraph numbers and offsets. But, the paragraph numbers seem to be off by the cumulative number of table rows found in the document.
Is there a way to get the paragraph number using office word js api from the range object or the paragraph itself?
198 Views Asked by Miey Stackoverflow At
2
There are 2 best solutions below
Related Questions in MS-WORD
- Cannot open xml file
- How to programatically implement Columns in page layout as of in MS Word using python-docx
- In which field the cursor is? (ms word, vba)
- load word file (.docx) in richtextbox
- Replace hyperlink with text from linked document
- Embedding Image in Microsoft Word using ColdFusion
- Using array in for cycle in Word Interop
- Runtime Error '5941' The Requested Member of Collection Does Not Exist
- Insert a photo to a Word bookmark from an Excel range, VBA
- How to choose a different header image in MS Word 2013 using a macro/button
- Can we edit hyperlink in Restrict editing mode in Word 2013?
- Macro in Word to Underline each paragraph in document less than X characters long
- Need to capture current scroll position (not cursor position) in MS Word
- Apply style on Content Control in a Word Document using OpenXML
- ActiveDocument.Tables.Count returns 0 but there are 4 tables
Related Questions in OFFICE-JS
- Excel add-in: How to detect whether the host platform is "office online"
- How to get User's actual Email Id in Outlook Add-in Integration
- Check if a JavaScript method or property is supported in an Excel version
- How can I create a Toc(Table of Content) for a document in Word using office.js?
- Persisting data in word document using office add-in
- How to get working Dialog API of OfficeJS API with Outlook 2016 desktop client
- Detecting a sort in officeJS Excel
- Need help loading a .docx file into current document
- Same versions of Office.js hosted on 'beta' and '/1/'?
- Saving Custom property using OfficeJS API doesn't persist on Exchange for long time
- Delete & Reload a "Add in" from Excel (Online & desktop app)
- OfficeJS Word Addin | Dialog API's messageParent not working across domains on MAC
- What browser does Office 2016 on Mac use for taskpanes?
- Why does this Context.Sync not work?
- Getting error using Firebase popup authentication in Word add-in
Related Questions in OFFICE-ADDINS
- Word Addin not working in 64bit office but working on 32bit office
- change the Label of a button in ribbon word add in
- Word add-in - ribbon
- How to capture "Print Tab" click event at the backstage in Outlook 2010 ?
- how to use built in functions for excel in office app development
- Assigning Custom Unique IDs to Word 2013 OpenXML Elements
- How can I restrict MS-Word to pre-defined styles but still allow inline format changes
- Persisting data in word document using office add-in
- How to get working Dialog API of OfficeJS API with Outlook 2016 desktop client
- Detecting a sort in officeJS Excel
- Insert Excel validation list in excel using Javascript
- Saving Custom property using OfficeJS API doesn't persist on Exchange for long time
- How to write a 'field' as link in microsoft word addin using javascript API
- What should I implement for a small popup control in a VSTO project?
- After deleting WebExtensionPart from WordprocessingDocument document get corrupted
Related Questions in WORD-ADDINS
- dynamic content control mapping for MS word c#
- Word add-in - ribbon
- Assigning Custom Unique IDs to Word 2013 OpenXML Elements
- How to write a 'field' as link in microsoft word addin using javascript API
- How to make a docx file, requires some custom plugin when opened
- Using Word.SearchOptions in an Office Add-In
- Why change file2 status, file1 also changes in Ribbon on word add in VSTO
- Word ribbon customization of native Office commands
- How to change lable of button on Ribbon (Word Add In VSTO) when click button at CustomTaskPane
- How to create Installable Package for MS Word for Mac?
- Setting title to displayDialogAsync() dialog box in Microsoft Office Add-In
- Searching list items in word document but the list items not be found inside of tables
- How to create customized Add Comment in Word-Addins?
- Word Add-In Set Data as HTML changes font type
- The returned text by "context.document.getSelection()" not runs for special characters
Related Questions in WORD-WEB-ADDINS
- Office Web Add-In dynamically adding buttons
- How to create customized Add Comment in Word-Addins Taskpane?
- Paragraph marks and hidden formatting symbols (¶) using Office JavaScript API code in Word add-in
- Is there way to bundle 2 different web add-ins into a single suite and publish it as a single product to microsoft app store
- Implementing table insertion into Word using Office for JS (officejs)
- How to get and replace the word on the left of the cursor
- Word Add-in Get full Document text WITH INDICATOR?
- Getting text from the pointer till the end of the document in JS Word api
- Word web add-in works only after cleaning up the cache
- Admin Managed Excel Add-in not visible in Office365 Excel
- Office Web add-in Offline experience
- How to find whether strikeThrough /underline is present in word document using office.js
- How does StorageEvent work in Office Add-in?
- Adding a file that saved in Onedrive to API request
- Retrieve word document from sharepoint
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?
Currently there is no office js api to retrieve the paragraph number from a paragraph or the range object. But I think you can get all of the paragraphs and iterate everyone to set the index number to every paragraph. Thus, you could calculate any paragraph number.