开发者

Database driven mail merge application embedded in a .net web application

I am trying to have letter templates (Word documents) that are stored in sql server VarBinary(max) be accessed via a web application where they will be edited and saved back to sql server by directors of our company.

Managers will select an existing template (Word document), make any additions, and mail merge with a list of customers to print or save the letters.

I want to open Word with开发者_如何学运维in a web page much like you would an email in Outlook, edit it with spell check and the like, and then save it back in sql server. I am able to get Word to open from a file but it is outside of the web application in a separate Word document. I am storing the Word document in sql server but am unable to open it in Word without having to save it to a disk (why should you have to go to a disk for viewing or editing?). I am able to programmatically mail merge but that is in a separate Word application.

I am finding bits and pieces on the web but nothing that will pull things together such as embedding Word but in a Windows app not a web app. Mail merge from a file not from a database, converting a byte array to Word in a directory but not on a web page.


You cannot open a word document directly via a web page, edit it, and save directly to the web site. You can link to a page that returns a word document, but as you've realized, this merely causes word on the user's computer to save the document to a temporary location and open it up for editing.

The solution here is to either:

  • Convert the templates to some plain text or markup that can be easily edited on a web page and build in the mail merge capability on the back end or
  • Allow the user to download the document, edit, merge, etc..., and then provide an upload function for the user to send the data back to the server.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜