I need to open office documents from my Sensenet client application. My client application is in ReactJs and I need to invoke the document to open in MS office. Is there any OData REST API available for doing the same. Kindly help.
1
There are 1 best solutions below
Related Questions in SENSENET
- Sensenet display UTC dates
- Path Too Long Error when importing into Sensenet
- SenseNet.ExclusiveLock.MsSql component is missing
- Sensenet Move Server
- Sensenet: Documents Sharing
- SenseNet Newly created content not showing up when querying for it
- File "delete" option missing from Sense/Net7
- How to get logged user roles through API- Sensenet
- Problem with the instalation of SenseNet in Windows Server 2008 R2
- Error while starting a workflow in sensenet (Basic workflow)
- OData REST API for integrating MS Office
- Cant copy files from one document library to another- sensenet
- (Sensenet) How to Create Folder with Name and Display Name are different from Dotnet Client(sn-client-dotnet)?
- (Sensenet) How to Add File in 'Allowed child types' from Dotnet Client(sn-client-dotnet)?
- Sensenet : Can I store lucene index files on azure file storage instead of App_Data folder?
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?
You have two options:
1. open a file in a desktop MS Office application
There is an action in sensenet that gives you the url for that. First, get the actions for a document, using a request like this:
You'll get the list of available actions, which is a JSON array containing action properties, for example a url. Look for the action named
EditInMicrosoftOffice. If you display the URL of that action and the users clicks on that link, the browser should open the appropriate desktop office app (e.g. Word). You may notice that the format of the url is special (something likems-word:ofe|u|https://example.com/Root/...). Please do not try to assemble this url manually, use the one that sensenet generated for you.2. open and edit a file in the browser
This requires Office Online Server to be installed and configured in your environment, and you also need to display an html containing an iFrame that'll display the editor.
A simple host page:Geting data to display the host page: