English 中文(简体)
ASP.Net: word creation/manipulation at client side
原标题:

I have a asp.net web app. On click of a button on a web page,I want to create a new MS word document on the client machine and show some data fetched from the server in it. Client can make changes into that document and save it on it s machine. After that client can again upload the saved document in the server and we need to update the data on the server based on changes done by client. Here, the constraint is, Office suite is only installed on client machine. so we have to extract the data from word document only at client machine and send it to server in any form like xml. Also I am thinking to use content controls in word document. What are the possible ways to meet above requirement??? In a quick way I found that probably it is possible through silverlight 4 but that is in beta version. can I do it by Active x using c#?? Any other approach would also be highly appreciable.

问题回答

This is definitely one of those times when I would just say... "no." Getting anything to work in the way you describe would be difficult at best. Would definitely require custom ActiveX in order to work at all. But there are so many problems with the basic idea, I d be surprised if this ever worked very well. It would basically be one hack on top of another.

It sounds like ultimately what you want to do is share an MS Word document. Isn t this what Microsoft Office Sharepoint Server is for?

This is not a free solution, but Aspose.Words has an object model for manipulating Word documents on the server side without Microsoft Office installed. Creating them on the server using Aspose would be easy. The uploading back and extracting content is also possible. Rather than trying to extract XML on the client side you could just have them upload the whole document back and use the Aspose object model to open it up and grab the relevant sections.

I have no commercial interest in Aspose -- just a happy customer.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签