Open and save Word doc to server???
-
I have a asp.net 2.0 web application that needs to open a word template from server, user change something, and then save back to server. Is it possible? Any help is appreciated.
It is possible using Office Interop, but before you do I'd suggest you look at what Microsof themselves have to say on the subject: 1) licensing: Microsoft require Office licenses for any server wanting to do this: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243006#kb2[^] 2) (more importantly) there are technical limitations to running this kind of thing on the web: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^] If you scroll down to where it says "Problems using Automation of Office server-side" in para 2 it says (in bold!): "This fact alone makes running Office Applications from a server-side environment risky and unsupported." So all in all, not a good idea.... There are 3-rd party components you can buy which will do the job - do a Google search. cheers Phil
-
It is possible using Office Interop, but before you do I'd suggest you look at what Microsof themselves have to say on the subject: 1) licensing: Microsoft require Office licenses for any server wanting to do this: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243006#kb2[^] 2) (more importantly) there are technical limitations to running this kind of thing on the web: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^] If you scroll down to where it says "Problems using Automation of Office server-side" in para 2 it says (in bold!): "This fact alone makes running Office Applications from a server-side environment risky and unsupported." So all in all, not a good idea.... There are 3-rd party components you can buy which will do the job - do a Google search. cheers Phil
-
Thanks for the reply. What I understand is that if using Office Interop Office needs to be installed on web server. Even so it still can not save changed word document back to server. Do you have any suggestion for the 3rd party component.
Are we allowed to "advertise" here..? :-) Oh well.. I have used some of the Aspose products and found them very good: http://www.aspose.com/Default.aspx[^] There are others (http://officewriter.softartisans.com/officewriter-86.aspx[^] for one) but I have no experience of them. cheers P