Hi all,
I developed an AddIn in C# and ArcGIS-Pro 3.1.2, where a table object gets exported to an excel file via the geoprocessing tool "conversion.TableToExcel". Afterwards I need to add some additional columns to the excel file. On the client there is no Office Interop Excel library available therefor I tried to use
the Open Source tool SpreadsheetLight to edit the exported xslx file. I tested the library in a simple c# Winforms project, where I added the reference to the library via the NuGet manager and in this testproject everything works as expected. But when I added the SpreadsheetLight package to my AddIn project and try to open a xlsx file I get the following error:
"System.TypeLoadException": Could not load type 'DocumentFormat.OpenXml.OpenXmlComparableSimpleReference`1' from assembly 'DocumentFormat.OpenXml, Version=2.0.5022.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
By the way NuGet packet manager installed SpreadsheetLight version 3.5.0 and DocumentFormat.OpenXml version 2.11.3
Any ideas what causes this error? Or is there a configuration/setting in the AddIn project to fix this error?
Thx in advance for your answers