大家都知道网页里可以显示.txt的文件可是怎样让它显示.doc的文件呢?如果能显示,那在网页中能否编辑.doc的文件呢?
------解决方案--------------------------------------------------------
lz搞个插件估计能实现~呵呵jf
------解决方案--------------------------------------------------------
关注
------解决方案--------------------------------------------------------
分不多呀
------解决方案--------------------------------------------------------
如何在Web页面上直接打开、编辑、创建Office文档
http://blog.joycode.com/kaneboy/archive/2004/11/03/37889.aspx
------解决方案--------------------------------------------------------
ArrayList list = new ArrayList();
//按合同号查询合同详细内容
strSql= "select b_content from b_contract_content where pc_contract= ' "+ Session[ "LandContract_Code "].ToString() + " ' and pc_code= ' "+ this.txtPc_Code.Text + " ' ";
list=GetBinaryData(strSql,Session[ "LandContract_DbName "].ToString());
if(list.Count != 0)
{
System.Web.HttpContext.Current.Response.Clear();
System.Web.HttpContext.Current.Response.ContentType= "application/msword ";
System.Web.HttpContext.Current.Response.BinaryWrite((byte[])list[0]);
System.Web.HttpContext.Current.Response.Flush();
}
public ArrayList GetBinaryData(string strSql,string strDbName)
{
try
{
string strConnection = "Provider=ASAProv;Data source= "+ strDbName + ";Uid=admin;Pwd=fuq82896295_16; ";
OleDb_conn = new OleDbConnection(strConnection);
OleDb_conn.Open();
OleDbCommand OleDb_comm=new OleDbCommand(strSql,OleDb_conn);
OleDbDataReader dr=OleDb_comm.ExecuteReader(System.Data.CommandBehavior.SequentialAccess);
ArrayList list=new ArrayList();
while(dr.Read())
{
list.Add(dr[0]);
}
return list;
}
finally
{
OleDb_conn.Close();
}
}
}
------解决方案--------------------------------------------------------
gz
------解决方案--------------------------------------------------------
http://blog.joycode.com/kaneboy/archive/2004/11/03/37889.aspx
不知道有没有对应操作excel的?
------解决方案--------------------------------------------------------
关注
------解决方案--------------------------------------------------------
关注
------解决方案--------------------------------------------------------
刚才的例子是从数据库中读取数据写到Word中如嫌麻烦
这样也可以做到,读取现成的Word文档
<a href= "http://localhost/wodewendang/inc/1.doc "> 连接 </a>
------解决方案--------------------------------------------------------
关注
------解决方案--------------------------------------------------------
千航控件,我整合过,但有脚本错误,不过基本功能还可以用!