.Net Interop Excel ExportAsFixedFormat() Exception HResult: 0x800A03EC
问题 I'm currently implementing a method that generated multiple sheets and export them as PDF. For this I'm using the Microsoft.Office.Interop Library (v14.0.0.0) with .NET 4.5.2 . Running Office is 2016 My code: Dim excel As New Application() excel.Visible = False excel.DisplayAlerts = False Dim workbooks As Workbooks workbooks = excel.Workbooks Dim workbook As Workbook = workbooks.Add(Type.Missing) [...] workbook.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, String.Format(<a Path>)