代码如下:public string CreateWordFile() { string message = “”; try { Object Nothing = System.Reflection.Missing.Value; string name = “xiehuan.doc”; object filename = @”C:\Users\xiehuan\xxx\” + name; //文件保存路径