开发者

How can I use DOT files to export data's?

I need to export data into a word doc using ".dot" models, with an application written in asp.net. Can you give me some links to learn this trick? I'm sure is it possible without any external li开发者_如何学Cbraries. Thanks to the universal knowledge ;-)


I doubt you will able to do this without any extra libraries.

If you are using Word 2007+ format (eg .docx, .dotx) you can use the Open XML SDK. If not, your best bet is probably Aspose.Words


You'll need to have MS Word installed on the machine that will fill the templates (.dot files), and then you can call an instance of Word to do the replacements for you, using Microsoft.Office.Interop.Word.

If this has to be implemented on a server, you might have a problem. Microsoft advises against installing Office on servers because of stability and reliability issues. http://support.microsoft.com/kb/257757 focusses on some of these problems and also mentions some alternatives.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜