但我们必须在添加附件时指定文件的物理位置。在我的方案中,我要将datatable导出到word文档,并且需要将该文档附加到电子邮件,而不是将文档保存在文件夹中。代码如下..Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook
Microsoft.Office.Interop.Word.Application oWord = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.DocumentoDocument = new Microsoft.Office.Interop.Word.Document(