How to edit OnlyOffice Document Using MS Words? - onlyoffice

I've successfully integrate OnlyOffice Community Server with OnlyOffice Document Server. But how to allow editing document (docx, xlxs) using MS Words/Excel?
Or from different perspective, what kind of stacks should be use to allow document editing both using MS Words and OnlyOffice.
I want to avoid Alfresco is this solution. There's a long reason for this and I will tell if needed.
Could you please describe the scenario when you use both OO Document
Server and MS Office.
I have a webapps which has dropzone. When user drag a file into the dropzone, the file will be uploaded to OnlyOffice Community Server. From the dropzone, when user click on uploaded file, a context menu appear (Download, Delete, Edit With OnlyOffice Online, Edit With Desktop MS Office).
When user click Edit With OnlyOffice Online, a "shared link" will be generated by the OOCS API and redirect user to the editing page (which I believe is OnlyOffice Document Server editor).
So when user click Edit With Desktop MS Office, I want the document to be opened using his/her desktop MS Words/Excel and uploaded back to OOCS when user save from within MS Office.

ONLYOFFICE Community Server allows you to open the documents using ONLYOFFICE Document Server or to download them to your client, where you are able to use Desktop Editors.
There are no connectors for any alternative document editing software at the moment. Could you please describe the scenario when you use both OO Document Server and MS Office.

Related

Embed Excel in a website to edit a locally stored document

Is it possible to embed google excel in my website to edit document stored locally?
My manager asked me if it is possible to integrate the Microsoft office webapp in my own website.
Clients have excel files stored on our website, we want to know if it is possible for them to open the file with a web excel page, edit the file and save the modifications. For now, they use SharePoint so it is easy for them but we intend to use an other platform.
Our client can have all the license we need.
I searched but I didn't find any solution.
I know you should be able to do this with ASP and the .Net Framework. SharePoint uses ASP pages, so you may try to do something simpler.
If you go over the Internet you'll see several solutions because people do this too.
e.g. a thing you can do is to use Open XML API to do this, and it is like reading / modifying a flat file on the server. A restriction is it has to be .xlsx / 2007 format onward.

Mimic Sharepoint edit Office file download

When you browse a list of files in Sharepoint using IE and attempt to download the file, you get the option of opening it in read-only or edit mode. When you open the document, Office knows that the file exists in Sharepoint so when you save, it is updated in Sharepoint without the user having to re-upload the file.
I'd like to have this same functionality in a custom website. I have access to Sharepoint and the file list so I'm using the same URL that Sharepoint is to download the file but there's something else happening in Sharepoint that tells the computer to not download a copy of the file but to open it in Office from the Sharepoint URL.
Does anyone know how to mimic this same behavior so I can get a file to be opened in Office from Sharepoint to it can save directly back to Sharepoint?
The special thing about this, is the link:
It's not just http://example.com/document.docx . It's ms-word:ofe|u|http://example.com/document.docx .
Just add ms-word:ofe|u| in front of the link for letting the browser know to open the link with an other Application.
There are other strings for other links.
Open a OneNote-File with:
onenote:http://example.com/document.one
And Excel-Files with
ms-excel:ofv|u|http://example.com/document.xlsx
And just for fun a TeamSpeak Link:
ts3server://example.com
Create URL for MS Office 2010 (and higher) to:
open document in view mode:
ms-excel:ofv|u|http://server.com/path/filename.xlsx
open document in edit mode:
ms-excel:ofe|u|http://server.com/path/filename.xlsx
List of MS Office apps URL scheme names:
ms-word:
ms-powerpoint:
ms-excel:
ms-visio:
ms-access:
ms-project:
ms-publisher:
ms-spd:
ms-infopath:
MS has a good page with explanation:
MS Office Dev Center > Office URI Schemes

Integrating MS Office tools like Outlook, Word etc with CQ

{The ability to do direct edits locally in Office tools and getting those edits/changes/updates saved in CQ}
I have a requirement in my project that require a kind of way ,where I can Integrate CQ5 with MS Office.means whenever I do any changes in any MS tool(Word,Power Point, MS Excel) then all the changes automatically reflected inside the CQ5.
Is there any way to do this..or we have any plugin in MS Office that can help me in this requirement.
Quickly answers would be highly appreciated.
As far as I know, you can setup WebDAV to be able to edit Office documents directly in the JCR:
http://dev.day.com/docs/en/crx/current/how_to/webdav_access.html
How to enable WebDAV in Adobe AEM?

SharePoint CSOM: Open .docx file in Word Online (Office 365)

I have written some code to connect to a SharePoint online server and get a list of *.docx (Microsoft Word) files from a folder on there.
I then display this list of files in a web page and each file is a tag, so that the user can click on it and "open" the file.
When the user clicks on the file, it prompts the user to Open/Save the file (the standard IE/Chrome file open/save dialog). Instead, I want the file to open up in Word Online (in the same/separate browser tab).
I tried searching for possible API support online, but can't seem to find any. SharePoint Online itself seems to be able to do this. If you click on a .docx (or any other Office file), it will open it in Office 365 (provided you have that provisioned).
Any help would be greatly appreciated.
You need to add the appropriate parameters to the link that the user clicks on.
Have a look at an existing document library and see the links that it creates:
https://mytenant.sharepoint.com/_layouts/15/WopiFrame.aspx?sourcedoc={1767368F-62FB-4C40-B3F2-C4EE44E88735}&file=My%20Document.doc&action=default
If the user is not licensed for Office 365, I think that they will still be offered a download. Not entirely sure though as we don't allow that on our tenancy. Certainly if they are only provisioned with SP Online and not the rest of O365, they can view the document online but cannot edit. Though recently we've seen people still able to edit - not yet sure if that is one of Microsoft's secret updates or a mistake by them.
RESPONSES TO COMMENTS:
When I say not provisioned in the rest of O365, I really meant that they were licensed for SharePoint but not anything else (a P2 license rather than an E3), that doesn't give rights to use the online (or iPad) editors. As far as I know, the only real way to test for that is to either try it or to use an Admin account to look at the license.
You cannot "pass credentials" to WOPI since credentials for Office 365 applications come from a separate system. You have to get credentials before you are allowed to access anything in Office 365. Basically Azure AD is the service & the login is done via login.microsoft.com, the login provides a token to your browser that is exchanged with the server on every request. To reuse an existing credential, you have to be using an application that "knows" you have already logged in. Typically, Microsoft use a helper application that picks up the login from IE if that's how you logged in and makes it available to other applications such as Office. If you are using Firefox to log in, IE & Office may not know that you have done so (though there is a plugin for FF that gets installed if you let it which does the same thing).
By the way, if you know how it REALLY works, please don't shoot me down for trying to simplify the process for others. :)

Can Microsoft Word document be checked-in & out from non-SharePoint Server?

When documents are maintained in Microsoft SharePoint Server, one can check-in & check-out the word documents. And in MS Word 2010 or above, the File tab shows the version descriptions and also provides button to check-in the document directly to the SharePoint server.
Can the SharePoint server be replaced with a custom application or server? Can I create an application to store the documents? And can I provide a feature that would provide the users option to check-out the documents maintained and also check-in directly from Word?
Yes, all this can be done. Good luck figuring it out, though. You'd have to write code to create the document storage capabilities, the Office plugins that can communicate with your site to do the check in/check out of the document. Good luck with that :)

Resources