I need to integrate work with ms office in my application. I use the article https://msdn.microsoft.com/EN-US/library/office/dn911482.aspx, but when you send a file to url, ms word can not access it :(
For send I use: canOpenUrl/openUrl. Url string is:
ms-word:ofe|u|/var/mobile/Containers/Data/Application/85D7E895-0F0D-4BBF-B83A-41122B6A73E4/Documents/documents/doc_0_148856.docx|p|app_ms_return|c|doc_148856
So I tried to implicitly and explicitly specify the protocol:
ms-word:ofe|u|file:///var/mobile/Containers/Data/Application/85D7E895-0F0D-4BBF-B83A-41122B6A73E4/Documents/documents/doc_0_148856.docx|p|app_ms_return|c|doc_148856
I think that MS Word does not have access to file, but I do not know how to give it to him :(
Help pls :)
P.S.
There may be some other solution for transmission of file in MS Word, in addition to opening up access?
This kind of integration only works with files hosted in SharePoint or OneDrive. From that URL:
You can enable users who are running Office on an iOS device to open
and edit files stored in SharePoint or OneDrive from any application (...)
Related
My android app needs to access (read only) .txt file located on OneDrive. Which is the simplest way to achieve that? All tutorial I read are a bit complicated for me (I'm new in this android stuff).
The simplest way is to share the file read only using “anyone anonymous with the link”. So basically no log in is required to access the file, just the link generated by onedrive. Using that link you should be able to access the file directly like any http web link.
Cheers
Christian
I've been searching for weeks on stackoverflow and google, but I wasn't able to find any good results.
I have a pdf file on my computer and I want to access that pdf file from an ios app, by clicking a link which will take me to that pdf file.
And when I modify that pdf file on my computer I want the link in the app to update with the latest version of that pdf file.
I thought of using a backend for storage such as Firebase storage but I had some issues with that.
How can I access that pdf file from an app? It doesn't have to be through a link, anything that will allow access with the latest version of the file is fine.
I appreciate any suggestions.
Thank You
The simplest way may be using a cloud storage such as Dropbox, Google Drive, One Drive...etc and get the public share link to that file. Then you can load the PDF in your iOS app using this link.
You can do this using web services API, You need to create simple webservice in backend (in any language for example PHP) to get the list of file with path to access in mobile app, and configure backend webservice code to your server (your computer, wherever you want to update files), So you can get every time updated data (files path) using webservice.
How do I upload files to the sharepoint shared documents folder using Microsoft Graph Client. I dont see any examples in the API documentation for the same. Is it possible to achieve the same via the Graph client API
The following works
Stream filecontents = new MemoryStream(filedata);
await client.Drive.Root.ItemWithPath(NameOfFile).Content.Request().PutAsync<DriveItem>(filecontents);
If you don't insist on upload file to SharePoint Shared Folder, you can use the OneDrive SDK to implement your requirement(Or MS Graph OneDrive API).
If you insist on upload file to SharePoint but not OneDrive(although the OneDrive is a particular SharePoint site),you can see the following answer:
We can use the following API to operate the Documents Folder:
Access the default drive (document library) for the given site.
/sites/{site-id}/drive
Enumerate the drives (document libraries) under the site.
/sites/{site-id}/drives
You can try the following API to upload files:
PUT /sites/{site-id}/drive/items/{parent-id}:/{filename}:/content
More infomation:
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/driveitem_put_content
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/sharepoint
If above solution does not work on your side, then the result will be we cannot upload files to SharePoint Shared Documents folder directly by MS Graph Client now. Currently, Microsoft just support limited common feature for the following:List/Site/ListItem.
If the API doesn't work on your side, you may submit a feature request to the Product group:https://officespdev.uservoice.com/
I am dealing with mobile and desktop applications. I am trying to use Google Drive as a permanent storage folder. Unfortunately I am at a loss because I cannot find any examples. Can someone point me at an example of storing or retrieving a file from Google Drive?
I would really like to see a simple example in code or maybe a library which can handle this. I am stuck at Retrieve and Use OAuth 2.0 Credentials https://developers.google.com/drive/credentials
Did you look at the sample app on the drive API page?
edit
google moved the examples to github
I don't know if I figured out your problem. What I have understood is that you are looking for a way that makes you able to work on the same project from different computers.
If so, you simply have to download Drive. Once install it will ask you what folder you want to keep syncronized with Drive. If you select your workspace, it will be syncronized with Drive. So, on another pc, if you have installed Drive, you will be able to use the workspace folder too, with the same files.
I hope this is helpful.
Marco
You should look into Documents List API.
The Google Drive API & SDK are meant to be a mean to integrate applications into the Web-UI of Google Drive. To protect the security of the user's files, it puts some restrictions to the application developer, like:
The app has to be installed from the Chrome Web Store
The app can only access files created from the app itself,
or files selected by the user using the Google Picker UI.
All these restrictions make the Google Drive API not a good choice for most non-web applications.
E.g. installing the app from the Chrome Web Store is probably something you would find cumbersome to request from your users for a mobile or desktop application. Nonetheless, without being installed from the Chrome Web Store your application will always receive an error when accessing a file from Google Drive.
The Documents List API allows you to store and load files (not only Google Documents!) into Google Drive.
This question is a little bit old, still. You can look at this example: https://code.google.com/p/google-api-dotnet-client/wiki/OAuth2
They do the OAuth2 for accessing task. But I just used the same code to access the files using the v2 API. http://code.google.com/p/google-api-dotnet-client/wiki/APIs#Drive_API
I only retrieved the file list, but it is working (from .NET, desktop app).
We would like to display office documents in the browser (DOC, PPT, XLS and PDFs). The iPaper API from Scribd is perfect but ideally it would be installed on our server. Open source is a preference but commercial is ok. Looking for an easy, server side, good looking, minimal interface flash frontend viewer.
Thanks!
You can use Google Document Viewer in embedded mode. It cannot be installed on your server and your documents will have to be accessible from the web.