在MS Word中导出数据 [英] Export data in MS Word
本文介绍了在MS Word中导出数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用C#将数据从SQL Server导出到MS Word. NET?
How to EXPORT data from SQL Server to MS Word using C#. NET ?
推荐答案
阅读此处以了解如何从数据库表中读取数据:
http://progzoo.net/wiki/C%23:Read_From_a_Database [> http://stackoverflow. com/questions/5766494/word-interop-app-to-write-text-to-the-end-of-open-document [ http://msdn.microsoft.com/en-us/library/w1702h4a.aspx [ ^ ]
http://support.microsoft.com/kb/316384 [
Read here to learn how to read data from database table :
http://progzoo.net/wiki/C%23:Read_From_a_Database[^]
And have a look at here for an example of writing data into word document :
http://stackoverflow.com/questions/5766494/word-interop-app-to-write-text-to-the-end-of-an-open-document[^]
Also these pages are useful :
http://msdn.microsoft.com/en-us/library/w1702h4a.aspx[^]
http://support.microsoft.com/kb/316384[^]
And then mix these ideas together and write your own export data application.
Hope it helps.
检查
无需从数据库自动将数据导出到Excel,Word,PDF [
Check
Export Data to Excel, Word, PDF without Automation from DataBase[^]
检查这些博客
无需从数据库自动将数据导出到Excel,Word,PDF [ http://forums.asp.net/t/1320121.aspx/1 [ ^ ]
--NDK
check these blogs
Export Data to Excel, Word, PDF without Automation from DataBase[^]
http://forums.asp.net/t/1320121.aspx/1[^]
--NDK
这篇关于在MS Word中导出数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文