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 answers
Related Questions in MS-WORD
- VBA query - sort text in alphabetical order in Word
- Can you programmatically generate a link to open a Word document and navigate to a particular location within it (preferably a comment)?
- How can I create an automatic table of contents in docx without the text being bold?
- Does MS Word secretly upload my file to cloud?
- How to use VBA to bold just some text
- Find text and numbers Formatted: "Case: BE########" and format them, regardless of the number
- Access all documents for Word from multiple instance using Excel VBA
- Using document.Application.PixelsToPoints will give different results
- Error: "Document_KeyUp" event not working
- Word macro for reversing selected text
- Make a table of remarks/figures, and format it as a table
- Add custom ribbon button to dotm file that runs macro
- Inline pictures: Add margin
- Excel VBA: Action logging on label click (like Audit Trail)
- Custom referencing format in CSL document, Want to add whitespace into bibliography
Related Questions in OFFICE-JS
- TS2339: Property 'getOoxml' does not exist on type 'Worksheet'
- office.js item.close() and inline replies in outlook
- Difficulty Embedding Fonts in PowerPoint Slides via insertSlidesFromBase64 Method
- Excel addin authentication for manifest referenced files
- Inline pictures: Add margin
- Does the Excel desktop client have a DOM Document, and how do I get to it?
- How to pass data from taskpane to a newly-created email?
- Can we extend the built-in Ribbon options using Office js manifests?
- Why can't I get a result from the Office.context.mailbox.item.to.getAsync function?
- Outlook Addin via JavaScript API: retrieving the categories of items in multi-select mode
- Share a piece of Redux state with custom functions only when its value has become stable
- Dispatch an action from custom functions
- Office-Js - How do I modify the manifest to add custom tab or custom button?
- Removing SlideMasters using the PowerPoint API
- how to get access token in word document 365 in desktop view
Related Questions in OFFICE-ADDINS
- office web addin URLs in manifest to local images
- Excel addin authentication for manifest referenced files
- Does the Excel desktop client have a DOM Document, and how do I get to it?
- Why PresentationOpen event is not triggered when opening an existing presentation via an hyperlink in the current presentation?
- Why can't I get a result from the Office.context.mailbox.item.to.getAsync function?
- VB code to set two color gradient in PowerPoint cell table
- Removing SlideMasters using the PowerPoint API
- how to get access token in word document 365 in desktop view
- Develop Add-in from an existing spreadsheet Excel JavaScript API
- Microsoft Excel Add-in Microphone Access
- PowerPoint JS API: connect 2 rectangles
- How can I get the full content of a Word Document?
- "Trusted Add-in Catalogs" in the Trust Center settings of Outlook is missing on my system
- Custom Web Addin is not shown on a ribbon
- Word Office Javascript API - Format first x chars
Related Questions in WORD-ADDINS
- How to get signed in username, email address and user group details from taskpane app
- Word-Addin heading detection
- Non-editable fields in word table after export from Power Bi paginated report
- VSTO Ms-Word addin -i need to show publisher name in Ms-Word addin section. I aready digtaly sign with digicert
- Word Office Javascript API - Format first x chars
- Office.JS Word API - Can't update property fields from ExecuteFunction in manifest
- Word Office Javascript API Perfomance
- Accept/Reject Tracked Changes in word document using office js api
- How to make office-js MS Word Add-ins to work with Connected experiences disabled?
- How to use the Word JS API to search for text with tracked changes enabled
- How to send Document.getFileAsync file object to the server side using officejs
- How to perform conditional Rendering using word api in officejs
- Issues with Text Manipulation Visibility when Importing External DOCX in MS Word Add-in using JavaScript API
- Get word Document Name? Using Office JavaScript API
- Create new document with base64 using office javascript API in office 365
Related Questions in WORD-WEB-ADDINS
- Word Office Javascript API - Format first x chars
- Office.JS Word API - Can't update property fields from ExecuteFunction in manifest
- Word Office Javascript API Perfomance
- how to open taskpane when I click on button?
- How can I add multiple requirements sets to the manifest.xml file for an Office add-in?
- How to use the Word JS API to search for text with tracked changes enabled
- Open XML SDK for office library available in JavaScript?
- OfficeJS - Cache file
- 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
- Paragraph marks and hidden formatting symbols (¶) using Office JavaScript API code in Word add-in
- Office Word JS breaks on office on the web but not on desktop version of word
- Where is the location of O365 Web Add-ins in the Registry
- Can you automatically trigger installation of Word Web Add-in?
- developing Office Add-in on a Mac and loading "https://localhost:3000/manifest.xml"
- Word Javascript API: General exception from length/complexity of regular expression
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?
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)
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.