Object Nothing=System.Reflection.Missing.Value;
Object filename="c:\\modal.doc";
Object filename1="d:\\modal.doc";
Word.Application wordApp=new Word.ApplicationClass();
Word.Document wordDoc=wordApp.Documents.Add(ref Nothing,ref Nothing,ref Nothing,ref Nothing); wordDoc.SaveAs(ref filename1,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing);
wordDoc.Close(ref Nothing,ref Nothing,ref Nothing);
wordApp.Quit(ref Nothing,ref Nothing,ref Nothing);如果改成这样还有错吗!!如果分数不够可以加!!
Object filename="c:\\modal.doc";
Object filename1="d:\\modal.doc";
Word.Application wordApp=new Word.ApplicationClass();
Word.Document wordDoc=wordApp.Documents.Add(ref Nothing,ref Nothing,ref Nothing,ref Nothing); wordDoc.SaveAs(ref filename1,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing,ref Nothing);
wordDoc.Close(ref Nothing,ref Nothing,ref Nothing);
wordApp.Quit(ref Nothing,ref Nothing,ref Nothing);如果改成这样还有错吗!!如果分数不够可以加!!
解决方案 »
- .net开发网站时,遇到一个问题!
- 谁有动画弹出层的JS代码?跪地求代码!
- 关于开放远程接口数据集的问题?
- 问一个访问权限的问题!
- dropdownlist绑定数据库有问题
- 如果一如电脑装了多个Web服务器的话,如何设置由http://localhos(不加端口号)启动的默认的服务器?
- WinForm中dataGridView1_CellValueChanged事件问题
- 页面跳转 在线等
- .net的网站,一直无法访问数据库,求指点这是什么错误,如何解决
- 急!关于Request中文字符串的问题
- 在验证文本框时,如何验证中文姓名?给出正则表达式,谢谢了,马上给分
- 在ASP。NET中有没有菜单控件?
http://aspxcn.com/dotnetarticle/html/97.html