asp.net 中把多个word合在一起
word文件存放在oracle数据表中,现在想把多个文档合在一起,形成一个 word文件怎么写。
for(int i=0;i<DataGrid2.Items.Count;i++)
{
ckb=(CheckBox)DataGrid2.Items[i].Cells[6].FindControl("ckb");
if(ckb.Checked==true)
{
yjbg=DataGrid2.Items[i].Cells[6].Text;
if(yjbg!="")
{
string sel = "select filecontext from mdoc where id = " + yjbg.ToString();
byte[] filecontext = (byte [])DBCon.ExecuteScalar(sel, "DictDB");
myfs.Write(filecontext, 0, filecontext.Length );
}
}
}
我用上面的代码,只能把第一个word文件写成功,以后的都写不进去。
谢谢