Hi @Urs Wagner
Here is the repo link:
https://github.com/sasinaola/WpfAppExcel.git
Success.
Sina
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
I am using .NET 6 and I want to open the Excel file with Microsoft.Office.Interop.Excel.
Calling the constructor of my C# class I get this error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. The system cannot find the file specified.'
I have installed Microsoft.Interop.Excel Nuget package.
I have installed in Visual Studio the office tools.
I am using the same code with .NET Framework 4.8. It is working fine.
Must a use another library?
Hi @Urs Wagner
I will suggest you to add those COM Manually.
However, this platform does not accept zip file as an attachment. I will create a repo on GITHub and send you the public link.
Cheers,
Sina