My goal is to link an Excel macro file from a web app. When clicked, it should be opened in the already installed Microsoft Office Excel app. Target devices are iPads and iPhones running iOS 11 and above.
What I have tried so far is to link the file using the schema:
ms-excel:ofe|u|https://myserver.com/somedirectory/myfile.xlsm, so no passback protocol or document context defined. When I click the link the Excel app opens but then displays a message that it is not possible in this version of office to open a file from this server. Manual I have used: https://learn.microsoft.com/en-us/office/client-developer/integration/integrate-with-office-from-ios-applications
So I did a research and found that it might be one of the following reasons:
URL is not encoded: I therefore tried to encode only the part after the |u| marker and also the full string. Neither of them worked.
Only links to SharePoint and OneDrive are supported: Hosted an Excel file on my OneDrive account and tried the public share link. This worked, however, the file was not opened in the installed Excel app on the device but in the online Excel editor inside Safari browser.
My conclusion is that the URL was formatted properly but Excel really does NOT allow any files loaded from own servers / other servers than OneDrive or SharePoint.
Can anyone confirm this for sure? Or is there a way how I can open an Excel file from an own server using the installed Excel app on my iOS device? Maybe there is a solution to somehow load the external file to OneDrive and then open it in the app, like https://onedrive.com/loadFile?url=https://myserver.com/somedirectory/myfile.xlsm?
Thank you in advance!
The URL scheme linked in the document only works for files hosted in FileShare or OneDrive. No other cloud services or local files.
See https://stackoverflow.com/a/52223696/1049134.
I got it to work using a webdav server, so I think that is the solution if you don't want to use a cloud service. Opening the file directly on the webserver will not work.
Related
I succeeded to make an excel file by using libXlsxWriter in Swift in my App and I have an URL that represent the excel file.
I made Share button for users to share the excel file easily by using UIDocumentInteractionController.
Now I want to add an Open button for users to open the excel file easily with appropriate app such as Microsoft Excel and Polaris Office in my App.
(I know that I can select Polaris Office and Microsoft Excel when I clicked share button but the other share methods are also shown. I want to force open excel app)
However I couldn't find a solution.
How can I force to open excel file with appropriate apps from URL in Swift?
Is it possible?
I've a strange requirement regarding for my app which using the Google Drive SDK. I'm creating a folder and a file(Single File) through app on the Google Drive. Now I want that folder to be modified by the app only. Is this feasible?
Why I need this?
I'm writing/syncing my app data to the user's drive. I'm creating a Folder and a file on the Drive.
Now the file can be modified by the user if he visit the Drive on browser or by some other medium.
So, If the file is modified, user will not be able to access his synced data on other devices.
I do not have my own server where I can store the data.
So, I want that file should be modified by the app only. How can I do this? Is this feasible with the current SDKs available? What else are the alternatives for me to get the project done?
Please Note : I do not have my own server.
I don't think this is feasible for the reason that I haven't read anything about it in the docs nor have I seen a working implementation of it.
The closest thing I can relate to this is Permissions for Shared Files's. But the restricting of file/folder happens to both browser and native app. They're always synced.
You can set the restricted folder to Reader role. Users will only be allowed to:
-Read the metadata (e.g. name, description) of the file or folder
-Read the content of the file
-Read the list of items in the folder
Check this iOS code on how to set the permissions.
I have created a Gmail Wrapper Windows Phone 8.1 (WinRT) application using Webview. When I try to compose an Email and try to add attachments, file picker is not displayed and nothing happens.
However when I use the Internet Explorer and login to the same Gmail account and click on Attach, the file picker is shown with different options to choose the attachment from.
I have enabled the required capabilities in App Manifest, however the file picker is not shown in the Wrapper application.
Any help or pointers would be appreciated.
The hosted browser (WebView) cannot show the native file picker. You'd need to proxy the request somehow and show the picker from C# for example. But, as you don't own the gmail source code, making the proper surgical changes would be difficult (and subject to be changed).
I'm working on a Phonegap 3.1 iOS app.
What I have currently:
I'm using the InAppBrowser plugin to view user-uploaded documents from a server.
The document types users upload are commonly (but not limited to) the following:
.pdf
.png, .gif, .jpeg
.xls, .doc, .ppt
.txt
What I want to do:
Viewing the files works well in the InAppBrowser, but now I am exploring ways that users could send the documents to each other.Mobile Safari has a share button that allows a user to send a file by airdrop, message, mail, tweet, facebook or airprint. I cannot, however, use Safari since it is a non-negotiable requirement that I do not expose the URL where these files are hosted.
The InAppBrowser allows me to hide the location from the user, which is not possible with Mobile Safari. I want to be able to email and print a document without ever exposing the url where that document lives.
Is it possible to create the same sharing mechanism from within a Phonegap app?
What I know so far
I'm aware of the Phonegap File plugin for uploading and downloading files.
If I were to download a file from the server so it was stored locally, how would I go about making it shareable (through email, airdrop, etc)?
From what I can tell, there are no relevant Phonegap 3.0+ compliant plugins to achieve this so I would think I need to create my own. Am I on the right track?
I'm developing an Epub reader on BlackBerry java platform, and I'd like to know if there is a possible way to register my application as the default reader for Epub files, like if a clicked on an attached Epub file within an email, or a link to that file in browser, or even if I clicked on it while browsing all files locally, am I going so far with this? is it possible?
Try using the Content Handler APIs, which allow you to register an app to handle files of a particular extension and content type (e.g. .epub and type application/epub+zip).
See this BlackBerry reference document for more information
If you install the full SDK, you should also find the CHAPIdemo sample code under samples/com/rim/samples/device/chapidemo.