views:

80

answers:

3

I have a section of a web application I’m working on where there are mail merge templates. The documents are word documents. When a user has need to edit the template I’d like them to be able to simply click edit, which would cause word to load with the document loaded. When the user is done, they click save in word and the web page spots the change in the file and pushes this back to the server.

I managed to create a VBScript in a web page that could do all of this, but only when internet explorers security was turned down. The fact that I’m using VBScript to automate is not good as it restricts the browser choice and I’m not happy asking my users to turn their security down.

I don’t want the users to download the file, edit it, save it to their local machine and then upload it back to the server, it’s all very clunky. I also know that there are 3rd party controls that allow editing in a page, but I'd rather avoid them if I can.

Is there an alternative way of approaching this?

A: 

you could use google docs API, which is certainly more universal than using proprietary technology that works in one and only browser (IE).

dusoft
Is it possible to host the Google Docs engine locally?
Robert Harvey
No. This is a fully on-line solution.
Pekka
A: 

I think you can go for the google docs API. It is more generic solution to go for too.

Sarfraz
Is it possible to host the Google Docs engine locally?
Robert Harvey
@Robert: is this really the case, please clarify to correct me, thanks
Sarfraz
@Sarfraz: I believe you have to store and retrieve your documents at Google.
Robert Harvey
@Robert: thanks man for your comment, i wasn't really sure about this. Now it rests on the questioner whether he wants to go with it or not or if he finds some other solution. Thanks again :)
Sarfraz
funny that you posted the same thing I did and even two minutes later. my answer was there already, right? ....
dusoft
@dusoft: when i was writing my answer and submitted it, i was surprised to see your answer with google docs api. Nothing as such, and this is a pure co-incident and ofcourse there are certain things that many people know. Thanks :)
Sarfraz
fair enough :-)
dusoft
+1  A: 

You can use Office Open XML to generate the word documents on the Server Side. There is an msdn article, sorry no time to go searching for it, explaining why you should not automate office from web servers using COM/DCOM because of security issues involving shared memory.

ChadNC