/*如何把word存入sqlserver数据库,并且读取的时候还是用word读取.
建立table 【程序编程相关:多层数据库开发十:存 储 过 程】 【推荐阅读:多层数据库开发九:查询数据库 】create table myimages(sno int,imgfield image); 【扩展信息:ie功能汇总(javascript)】 建立c#工程,添加引用(reference->add->brower->office安装文件夹->office11->msword.ole,然后什么都不用问了,等待...,然后拷贝下代码,具体功能见注释*/ using system; using system.drawing; using system.collections; using system.componentmodel; using system.windows.forms; using system.data; using system.data.sqlclient; using system.io;namespace writefile
{ /// <summary> /// summary description for form1. /// </summary> public class form1 : system.windows.forms.form { private system.windows.forms.button button1; private system.windows.forms.textbox textbox1; private system.windows.forms.button button2; private system.windows.forms.button button3; /// <summary> /// required designer variable. /// </summary> private system.componentmodel.container components = null;public form1()
{ // // required for windows form designer support // initializecomponent();//
// todo: add any constructor code after initializecomponent call // }... 下一页