VB.NET生成Excel,已存在提示框点否时报错

如题

VB.NET生成Excel,已存在提示框点否时报错_第1张图片

 

VB.NET生成Excel,已存在提示框点否时报错_第2张图片

Exception from HRESULT: 0x800A03EC

 

最终没有好的解决方案,只好屏蔽掉

            Try
                obook.SaveAs(excelSaveName)
            Catch ex As System.Runtime.InteropServices.COMException
                '屏蔽掉Exception from HRESULT: 0x800A03EC
            End Try

 

你可能感兴趣的:(VB.NET)