Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Microsoft.Office.Interop.Excel with .Net Core errors

$
0
0

I tried to open an excel document in my .net core desktop application using Microsoft.Office.Interop.Excel but 

Microsoft.Office.Interop.Excel.Application (exApp ) object in dynamic view contains the error : 

Unable to evaluate the expression. Operation not supported. Unknown error: 0x80070057.

Also, Workbook (exWbk ) object has the same error and I couldn't work with worksheets.

Code:

            Microsoft.Office.Interop.Excel.Application exApp = new Microsoft.Office.Interop.Excel.Application();

            Workbook exWbk = exApp.Workbooks.Add(filePath);

Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>