I want to group a text range in MS Word. I have access to the Range object but I can't find an API method to group it.
On MS Word, it is possible to do it using this option:
Is it possible to do so using JS API method for Word add-in?
Grouping is not supported in the Word JavaScript library. But its a good idea. Please suggest it at Office Developer Suggestion Box.
Related
I have reviewed the office-js docs and not found any formal way of working with the clipboard through a Word add-in.
I attempted to use the newer navigator.clipboard.writeText but it is automatically rejected by the internal Word browser (where the add-in is hosted) without prompting the user (like a browser does). I have not seen any associated support for permissions policy that can be used to communicate with Word that the add-in would like clipboard permissions.
So, I am resorting to the deprecated document.executeCommand('copy') for now, but am concerned that will get my add-in rejected by the MS App Store.
Is there an official/sanctioned way to use the clipboard from within a MS Word add-in?
OfficeJS doesn't provide anything for that. You may sill use the Document.execCommand() API which includes "copy", "cut" and "paste". But it was deprecated and may not work in the web browsers any longer.
Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: Type: product feature request at https://aka.ms/M365dev-suggestions .
It seems like there's one method Range.copyFrom of Excel rich client api. I can't find the alternatives either. Maybe you can ask to provide the new feature. Whether it could be in the future feature list or not may also take some time.
We already developed Excel add-in using officejs with RESTful api with Batching in custom Functions.
And we wanted to achieve same in Word add-in hence kindly share example using word add-in with RESTful api.
As I understand it, you have a web API (REST architecture) and you have successfully made calls to it from an Excel custom function. Now you want to make calls to a web API from a task pane Word add-in. You should be able to do this exactly the same way that you do in the custom function. In fact, to start with, you should use the exact calling code and get the exact same data. The difference is only in the UI. You will probably want the calling code triggered by an event handler for a button in the task pane.
As per my knowledge, you need word manifest.xml file then all your business logic you can write using differences your addin by running inside excel or word
So officejs provide Host info to check running platform
I guess it will help
I need to dynamically generate contracts, and for that our HR depart already has some specific templates which only need a few changes (like names, address, phone number, etc).
For that reason, I'm looking for a library that will help me with the following:
Read a word file (used as a template)
Identify specially marked pieces of text, and replace them.
Do you know of any library(preferably free) that will help achieve that?
P.S. The .Net Framework I'm using is 4.6.1
I'd use the WordprocessingDocument Class.
I'm designing a web application that will enable users to upload docx documents and will the show the diff between each revision.
I don't know how to approach the problem. Is it a bitmap, how do I decode the doc to show changes. Do Microsoft has an API I can use to simply send 2 word docs, and it will return the changes between the two?
I also have the same question on google docs. I think with google drive it's simpler. Saw this API
If anyone has done something similar or has an example to some similar app, I would be grateful.
Have you looked at Word's Compare tool? See under Review|Compare. Word's API also support the compare tool's automation (e.g. via VBA).
To use Word's API, you'll need to automate Word. For the details of the method, see: https://msdn.microsoft.com/en-us/library/office/hh128820(v=office.14).aspx
See also: https://code.msdn.microsoft.com/windowsdesktop/Compare-Two-Word-Documents-043b2e1d
I want to do this:
I know I can search for an exact match for one word but I want to be able to search for multiple words in the same object. Is that possible?
Not yet.
We are currently prioritizing the next set of work on SQL Search.
Please vote or comment on our UserVoice forum for updates on this specific feature request:
https://redgate.uservoice.com/forums/101149-sql-search/suggestions/1493729-allow-or-and-not-searches
Thanks!