I have a Java app that creates and stores some documents online for my users, but every time they need to update the documents and change anything they have to download them and then edit with MS Office and them upload again to the web app. After seeing Office Web App to edit Word, Excel documents I was wondering if there is a way to integrate those editor to my app, so the client will click the file and will be edited by Office online version instead of downloading, editing and uploading.
Related
Does Google provides any API for open the online document(.docx) with Google Docs? if yes any materials that I can refer to? My idea is client can upload the document to the website then it can open and edit it by using Google Docs instead of download it and open with installed software.
Google drive has a REST API
the article on their site
You will be able to upload / edit files from the user and the user will be able to open them but I don't know if you can force open a document.
And if you use this API it would require the user to login in which may or may not be something you want.
Or you could have a look at google picker (found om the same link)
Create and open files using the Google Picker
Drive files can be opened from an application independently of the
Drive UI. An application can easily fetch and display a list of files
with the Google Picker as described in Open files using the Google
Picker.
Anyway: Do some more research on their site, you will probably get it done with Google Picker
Hi I'm Developing the Android app to upload the file in Google drive, If the user to enter the gmail user id or already android gmail account for selection based on the user selection, How can i achieve the issue,
Please update the issue, Files are created devices itself and that file to directly upload the google drive.
You can use Google's Drive APIs, just follow the steps here and it should work. I am using it for a C# program and it works good.
Umm I see that there are no explanations on how to upload a file. Check this link after you complete the authentication and the other stuff in the first link, I think it might help.
I'm trying to use Selenium and Java to download .csv files and then re-upload them. The program would visit a google doc with a list of urls. It would then visit each of these urls and click a hyperlink on each site to download a .csv file. It would then go to Google Drive and re-upload the .csv files as google spreadsheets.
Is this possible to accomplish with Selenium? If not, what is a better solution?
Thanks
Selenium is a library that interacts with a browser's DOM. It sounds like you are going to be doing none of that. You will be interacting with the local filesystem (not a browser DOM), accessing web links (very little to do with browser DOM), and reading .csv files (not a browser DOM).
You want to use Java and Google Drive API.
How can I open doc, ppt files without any app installed in device in Android?
I am developing a document to go and I would like suggestions on how can I open doc, ppt, pdf file without any app installed.
if you want a readable output for those files, you kinda need another app. To my knowledge, stock android doesnt have a way to read any of those files nativly.
if you can manage one app, kingston office i know personally can open those types(pdf is iffy)
https://play.google.com/store/apps/details?id=cn.wps.moffice_eng&hl=en
The other way i think is if you had an external interpreter that can make a web page out of it. Maybe using drive.google.com would serve for that, but i dont know how far the browser on your device can go with it.
I have a project which requires creating a Word (.doc) file with certain formatting and certain data fetched from my database. I want to output that file to user which he would edit and the upload the file back it back to the server. After which I want to perform the following conversion on the uploaded file.
.doc to .pdf (Intended to be downloaded and viewed on web)
.doc to .html (Intended for free text search on web)
I want to achieve this without opening the Open Office port. The earlier version was doing this but the port opened had tendency of crashing when the users are more. So I want to avoid doing that. The Open Office and the OS both were re-installed on other machines and tried in different ways but the OO port crashed every time the users increased.
Is there any other way to achieve this conversion? Continuing with this is not possible due to the crashing.
This is the host machine:
Tomcat server on Linux (RedHat 64 bit)
The application is developed in Java (JSP and Servlets)
The backend is Oracle
All users have:
A Linux machine, mostly 32bit Fedora or Suse
Any help is appreciated.
You could use http://poi.apache.org/ for handling the actual .doc files. For PDF, there are a number of PDF libraries available as well. The catch is that many are not free, but here is a list of open source PDF libraries: http://java-source.net/open-source/pdf-libraries
Here is a discussion on Word to HTML. Convert Word doc to HTML programmatically in Java