症状: 生成Word格式的报告,调试过程中总是出现"服务器出现意外情况。 (异常来自 HRESULT:0x80010105 (RPC_E_SERVERFAULT))"的错误 原因: 代码 WordApp.Documents.Add(ref Nothing, ref Nothing, ref Nothing,ref Visible), 最后一个参数Visibale设置成false了 解决方法:Visible=true using System;using System.Collections.Generic;using System.Text;namespace Business 相关文章: