///
///替换word中的文本,并导出word,输出选择框///
protected voidReplaceToExcel()
{
Word.Application app= null;
Word.Document doc= null;//将要导出的新word文件名
string newFile = DateTime.Now.ToString("yyyyMMddHHmmssss") + ".doc";string physicNewFile = Server.MapPath(DateTime.Now.ToString("yyyyMMddHHmmssss") + ".doc");try{
app= new Word.Application();//创建word应用程序
object fileName = Server.MapPath("template.doc");//模板文件//打开模板文件
object oMissing =System.Reflection.Missing.Value;
doc= app.Documents.Open(reffileName,ref oMissing, ref oMissing, ref oMissing, ref oMissing, refoMissing,ref oMissing, ref oMissing, ref oMissing, ref oMissing, refoMissing,ref oMissing, ref oMissing, ref oMissing, ref oMissing, refoMissing);//构造数据
Dictionary datas = new Dictionary();
da