I have a web application(PHP) running on a server which hosts several DOCX Documents (MS Word documents)
I want the user (using my application) after choosing any document to be able to:
open the document using Microsoft Word installed on his PC
View the document and edit it.
save his work, and changes must be committed to the server.
could anyone help me how to do that
ie.
lunch MS Word on client PC from JavaScript
know when the user closes the MS Word application on his PC
is it necessary to download the file before editing it or I can edit it remotely?
Thanks in advance
You can launch Office applications using Office URI Schemes. This would allow you to automatically open the file.
If you want to avoid downloading the file locally, you'll need to implement either WOPI or WebDav on your backend to handle the requests.
A simpler solution would be to use Microsoft Graph to push the file into OneDrive. Files in OneDrive have a WebUrl property which wires up opening documents in Office for you.
Related
I want to open documents like pptx, potx, word documents etc in browser, where all documents are hosted on VPN server.
I tried both https://docs.google.com/viewer and http://view.officeapps.live.com/op/view.aspx but didn't get any preview. I may be wrong but I guess this preview is not generated due to documents are hosted on VPN server and Google and MS Office API not able to resolve documents path.
Can anyone help me to either solve this VPN issue or suggest any JS library which supports document preview.
Thanks
You are correct, preview would not be available if your files are hosted on VPN server or you are blocking the outside traffic using firewall.
This is a unique requirement where we have an Universal Windows App which saves some configuration (xml) file in the system storage (app storage). Now, when someone open our web site (web version of same windows app) in the same system, we want to read the xml through JavaScript and render content accordingly. I know accessing file through javascript from browser involves permission issues in reading file.
We have tried setting local storage and access through iframe posting - Failed.
Saving to xml file and then tried to read when someone opens the web site using javascript - Failed.
We have workarounds like save to cloud and read from there. Like save to azure blob storage or SharePoint list/library and then read from there. But, it is specific to user settings, we like to avoid the round-trips and authentication stuff if we saved to cloud.
Any ideas we can achieve or solve this to share the file/content between the browser and windows apps?
-Praveen.
I’ve been assigned a task, one which I’ve never done before, to generate a resume using data from our online job application web site, which a user client can display as a web page and then save to their local system in one of two formats, MS Word or PDF. The resume web page is a fixed layout which contains the clients contact information, education, work history and other relevant stuff. I already have a JavaScript plug-in for generating a PDF file on the client side, I’m now looking for a solution to create the MS word document on the client side and save either one to the client file system. The resume page is a single page with a fixed layout, customized only by data stored in the system for the user.
To see other details on the web applications follow this link: Express Professionals
Here are some of the more important requirements I have to take into consideration:
We are a Microsoft shop and use 3rd party solutions which adhere to those standards.
Windows Server 2012 R2 and IIS 8.5 - Forms Authentication - SQL Server 2012 backend
MVC4 internet application with Razor web pages
Bootstrap 3.0, JQuery 1.11, JQuery UI 1.8.24, OData 5.2
The application must be responsive from desktop to hand held devices
Target client browsers are IE 9.0 and up, Chrome 42.0 and up, Safari for MAC 8.0.6 and up - No commercial or 3rd party paid libraries or paid plug-ins. If I can’t find a free solution; I need to invent my own
No popup windows or other web pages to collect user input on where to store the finished document on the client machine
A single button click, one for PDF and one for MS Word, will take the Html resume page displayed, convert it, then save it, to the client’s machine in the chosen format, then launch the client app and load the document
The user can then decided where they want to save the file
If the resume page can’t be converted to the native client application file format, it can be saved to the file system in the next best compatible file format which the client application can read
Saving the converted file is OK, but it is preferred to launch the client application and load the converted file on the client machine as part of a complete process
SharePoint services or SharePoint Server are not available for use in solving this problem.
As I stated, I have found a JavaScript plug-in for creating the PDF, but for the MS Word document, I have only found bits and pieces which are unrelated, nothing in part or as a whole, which can be cobbled together into a working solution using our development stack.
Any references or links that match the requirements or suggestions which get me closer to an end solution are welcomed.
Thanks in advance….
After evaluating several open source solutions, the final choice was OpenXML for MS Word conversions. An MS Word template was created with the basic framework and then the OpenXML utility was used to create the class that builds the word doc. That class was customized to allow a data source to be added to the constructors and data added to tables in the document. DevExpress was used for the PDF conversions, since I don't know this tool the last part was handed off to another developer.
I think the answer is going to be "not possible" but it doesn't hurt to ask.
I've created a web application for a specific user that in part creates Word Doc documents on the server that they then download to their local machines.
My end user is not an experienced computer user and occasionally "loses" the files they've downloaded. (They're in the default download directory mixed in with other things they've downloaded!). It would be preferred if files downloaded from my web application went to a specific folder.
Is there a way to do this either in the web apps code or as a configuration of their browser?
The web app is built using MS Web API 2/C# for the server and Javascript/JQuery/Knockout on the client side.
I have a web page containing a list of pictures urls (can be more then 1000 items) and I want to enable a button for the user to click and download all of the files to the local hard drive.
The download process should ask the user for a directory to save the files in and then go ahead and download all files to that directory (if possible, creating sub directories inside). This should be done with a single user confirmation for the whole download process and avoid display the browser save dialog for each file.
Is there a way doing that? I am aware I can't use the standard HTTP protocol for the downloads and have to write some kind of control to do the job. The page is written in asp.net.
Downloading to the server, packing and sending to the user is not possible. The download has to be originated from the client machine.
You should update your question to include the requirements from your comment, because they make a huge difference. If the server cannot retrieve the files, because he doesn't have the right permissions, your only option is to run the code on the client side. There are several options how to do this, mostly depending on the clients and your coding skill:
Flash (Not sure about the security aspect of writing to the local file system, though)
Java Webstart (Disadvantage: Clients need to have the Java runtime installed)
Browser plugin/extension (Disadvantage: You can only support a subset of browsers and the page will not be immediately usable, as the plugin or extension needs to be installed first)
In all cases, you will have to write a tool, that retrieves the URL list from your server and starts downloading it.