HTML page embedded Google Docs Viewer / Office Web Apps Viewer for intranet files - html

Google Docs Viewer / Office Web Apps Viewer processes file on Google / Microsoft server. It firstly downloads file to the server and so if file is located within my private protected internal network of my organization which Google / Microsoft has no access to then it will not work.
<iframe src='https://docs.google.com/viewer?embedded=true&url=[INTRANET_OFFICE_FILE_URL]' />
<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[INTRANET_OFFICE_FILE_URL]' />
Is information above correct?
Are there any viewers which can work with intranet files?
I'm interested in viewing Word / Excel files (not PDF - for which I can use <embed /> tag).
Thanks

It is possible to install Office Web Apps Server locally.
https://learn.microsoft.com/en-us/webappsserver/office-web-apps-server-overview
Office Web Apps Server provides a page at the address http://OfficeWebAppsServername/op/generate.aspx that you can use to generate links to publicly available documents that have UNC or URL addresses. When a user selects a generated URL, Online Viewers enable Office Web Apps Server to get the file from its location and then render it by using Office Web Apps. The user can view the Word, Excel, or PowerPoint file in a browser with Office features intact. Formatting and layout in Word documents are preserved, data in Excel workbooks can be filtered and sorted, and animations play in PowerPoint presentations. However, be aware that Online Viewers allow users to view but not edit files, and Online Viewers can't open any files that require authentication.

Related

Is there a way to view word files locally using office web viewer

I have a word file, and I want to open up that word file for preview/viewing purposes only, not to edit. How could I go by this?
I have a Django application and one of the main purpose of the application is to view documents that people upload on the site. However for testing purposes I cannot get to preview documents for reasons I do not know.
I am using Microsoft office viewer to view the files.
This is my html code in Django:
<iframe
src="https://view.officeapps.live.com/op/embed.aspx?src=http://127.0.0.1:8000/media/project/1/f73ab109-dcaa-4cc3-bbfc-7121eca10118.doc">
</iframe>
And of course media/project/1/f73ab109-dcaa-4cc3-bbfc-7121eca10118.doc is the location of the file. The error displayed in the html:
I am assuming that the office viewer is expecting a "real" internet directory and not something locally.
The solution is simple.
To open a file from something like Office Viewer, the file must be accessible from anywhere on the Internet.
"127.0.0.1" is your local loopback address, which is accessible only from your computer, so the Office Viewer can not access.
Even in a test environment, you will need to upload the media file to public storage and make it accessible from the Internet.
Deploy your Django App to a publicly hosted instance, or use Django-Storage app to serve MEDIA files from a public storage service such as AWS S3.

Sharing of data on Google servers maintaining Access Control List

Can i share the files which are uploaded in the Application Folder with other Google account users ?
https://developers.google.com/drive/android/appfolder
I want the user uploading the file to maintain an Access Control List.
If Appdata does not support it, is there any other alternative provided by google for it?

google drive preview generation while uploading document

Can a google drive application generate a preview for a file (which is not handled by google drive by default) when a file of that type is uploaded by the user, rather than creating it using that application?(Assuming the user has authorized that application)
Unfortunately, no, sorry.
The closest we have is being able to generate a third party thumbnail for a file. Your app can decide how the file will appear in the Google Drive thumbnail view by uploading the necessary image(s).
The video here explains it: http://www.youtube.com/watch?v=jG5-9zlaPL8

Will the .zip format be supported for Google Documents via drive?

Right now my application downloads the documents as zip-archive via GData API.
I'd like to switch to the new "exportLinks" feature of drive, but I don't see the zip format
in the list of supported formats.
Or is there a different way to export documents as HTML including images?
For now there is no plans to support ZIP export but I just filed a feature so that this can be reviewed by the team and prioritized.
For now you could use the HTML export link, it will get you the Google Document in HTML where all the images are external links hosted on Google servers (some https://lhX.googleusercontent.com/<longID> URLs) And then you would have to write a script that would get all these links from the HTML and then fetch them.

External asp.net mvc application accessing files on Google Drive

I would like to build an external asp.net mvc application that has the following features:
The application is accessible via its own domain such as www.itsowndomain.com
The application has access to one Google account (such as itsownaccount#gmail.com) where all the files are stored in the Drive folder. So the users of the application should not have to log into their own Google accounts in order to access the files from this application. The application needs to have automatic access to this (itsownaccount#gmail.com)'s google Drive, that process should be transparent to the user, they should never have to authenticate themselves, its should all happen in the code in the background when the application loads.
The application will use Google Picker to list the files that are in (itsownaccount#gmail.com)'s google Drive folder.
My questions are as follows:
Is what I am trying to do possible, basically using Google Drive as a storage of files and downloading them, uploading new ones and possible editing some from an external application?
Can I use one account because all the files should be publicly available so I do not want users to have to be thinking about authentication in a site just so they can view publicly accessible files?
How do I go about implementing this, is there a tutorial because the ones I have looked at all differ as they mostly try authenticate each user with their own Google account?
you can use Google Drive as the storage solution for your application, check the Google Drive SDK: https://developers.google.com/drive/
Google Drive application usually rely on the users' accounts to store their files, but nothing prevents you from using your account to store all files and make them publicly accessible
there's an ASP.NET MVC tutorial and sample app at https://developers.google.com/drive/examples/dotnet, however, it authenticates each user with his own account. You can start from it and replace the standard OAuth flow with one that always uses your credentials, for instance, by always using a Refresh token that you generated in advance and provided to the app.