<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ClosedXML in Addin in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321417#M10231</link>
    <description>&lt;P&gt;I actually tried to create an Add-in sample that writes an XML file using ClosedXML and was not able to get it to work properly.&amp;nbsp; &amp;nbsp;After some testing it turns out that one of the dependencies of ClosedXML is DocumentFormat.OpenXML which is already included with ArcGIS Pro in the ArcGIS Pro bin folder.&amp;nbsp; &amp;nbsp;I was unable to find a matching release of ClosedXML, so i wrote my sample using DocumentFormat.OpenXML instead.&amp;nbsp; The trick here is that you have to reference the DocumentFormat.OpenXML.dll file in the ArcGIS Pro bin folder and to NOT include the DocumentFormat.OpenXML NuGet.&amp;nbsp; Using the NuGet might lead to another version mismatch.&amp;nbsp; Also when including the OpenXML reference make sure that no specific version is listed and the copy local setting is false.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1692740826709.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78862i92032AA8D5C0205A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1692740826709.png" alt="Wolf_0-1692740826709.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attached my sample project.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 21:49:54 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2023-08-22T21:49:54Z</dc:date>
    <item>
      <title>ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321160#M10229</link>
      <description>&lt;P&gt;I'm working on migrating our addins from ArcMap to ArcGIS Pro 3.0.3. Currently I'm trying to replace EPPPlus with ClosedXML. it's not working as part of the addin. I can get it to run fine in a standalone app, so believe it may be related to dependencies somehow. Has anyone else tried this? I'm using a pro window, but moved the test code up the button handling before the window appears and it still fails.&lt;/P&gt;&lt;P&gt;It fails during the saveAs, and a file is created, but it is corrupt and non-salvageable.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:24:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321160#M10229</guid>
      <dc:creator>AzharIbrahim</dc:creator>
      <dc:date>2023-08-22T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321417#M10231</link>
      <description>&lt;P&gt;I actually tried to create an Add-in sample that writes an XML file using ClosedXML and was not able to get it to work properly.&amp;nbsp; &amp;nbsp;After some testing it turns out that one of the dependencies of ClosedXML is DocumentFormat.OpenXML which is already included with ArcGIS Pro in the ArcGIS Pro bin folder.&amp;nbsp; &amp;nbsp;I was unable to find a matching release of ClosedXML, so i wrote my sample using DocumentFormat.OpenXML instead.&amp;nbsp; The trick here is that you have to reference the DocumentFormat.OpenXML.dll file in the ArcGIS Pro bin folder and to NOT include the DocumentFormat.OpenXML NuGet.&amp;nbsp; Using the NuGet might lead to another version mismatch.&amp;nbsp; Also when including the OpenXML reference make sure that no specific version is listed and the copy local setting is false.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1692740826709.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78862i92032AA8D5C0205A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1692740826709.png" alt="Wolf_0-1692740826709.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attached my sample project.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 21:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321417#M10231</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-08-22T21:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321564#M10233</link>
      <description>&lt;P&gt;I had switched to OpenXml yesterday and was wondering about if there was a version conflict. For the most part, I can get it to work using Nuget, but I'll switch to the version included with ArcGIS Pro.&lt;/P&gt;&lt;P&gt;I wonder if I compile ClosedXml (the version using the OpenXml version included with Pro), using the OpenXml from the ArcGis folder, if it will work? OpenXml takes a lot more work to get all of the styles working the way I need to. I'll try out a couple of options today. Thank you for the sample project.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321564#M10233</guid>
      <dc:creator>AzharIbrahim</dc:creator>
      <dc:date>2023-08-23T12:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321587#M10234</link>
      <description>&lt;P&gt;In theory that should work but you have to make sure not to specify a specific version of the OpenXML dll since an upgrade of ArcGIS Pro could ship with a newer release of OpenXML.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321587#M10234</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-08-23T13:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321607#M10235</link>
      <description>&lt;P&gt;The issue I had was methods used in the new OpenXML were not available in the one supplied by ArcGIS Pro.&lt;/P&gt;&lt;P&gt;I'll continue using the version in ArcGIS Pro for now, but may still run into breaking changes as the version in ArcGIS Pro is quite old and many things have been changed in the later versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1321607#M10235</guid>
      <dc:creator>AzharIbrahim</dc:creator>
      <dc:date>2023-08-23T13:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1322059#M10240</link>
      <description>&lt;P&gt;Based on our testing, I would assume that using EPPlus would fail as well since it also uses OpenXml as a dependency. It's good information to know if you're trying to output excel reports. We used EPPlus in our ArcMap addin and I was just testing open source when migrating to ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 11:56:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1322059#M10240</guid>
      <dc:creator>AzharIbrahim</dc:creator>
      <dc:date>2023-08-24T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1341009#M10595</link>
      <description>&lt;P&gt;Hello Wolf,&lt;/P&gt;&lt;P&gt;I have the same problem and your solution is just an explanation, why it doesn't work -&amp;gt; very old DocumentFormat.OpenXML.dll from 2015, shipped by ArcGIS Pro 3.1 (in my case).&lt;/P&gt;&lt;P&gt;I would love to use a modern version of the lib (2.20.0) in my addins, or even use ClosedXML (&lt;A href="https://github.com/ClosedXML/ClosedXML)" target="_blank"&gt;https://github.com/ClosedXML/ClosedXML)&lt;/A&gt;&amp;nbsp;but it's not possible.&lt;/P&gt;&lt;P&gt;Are there any plans at ESRI to switch the OpenXML-SDK lib (&lt;A href="https://github.com/dotnet/Open-XML-SDK)" target="_blank"&gt;https://github.com/dotnet/Open-XML-SDK)&lt;/A&gt;&amp;nbsp;to a recent Version in, for example, 3.2 or 3.3?&lt;/P&gt;&lt;P&gt;Can I get any informations about this topic at the european dev summit next month?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 17:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1341009#M10595</guid>
      <dc:creator>FlorianHoffmann2</dc:creator>
      <dc:date>2023-10-24T17:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: ClosedXML in Addin</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1345998#M10652</link>
      <description>&lt;P&gt;Just for information, I forked ClosedXml and OpenXmlSDK, removed all non necessary projects (tests, examples, etc), configured them to just build .NET 6 (fixed some errors with no longer used hasing-methods) and changed the assembly names (added a prefix). Then I used the new OpenXmlSDK assembly for my ClosedXml fork, included the new ddls in my pro addin module and it just worked.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/closedxml-in-addin/m-p/1345998#M10652</guid>
      <dc:creator>FlorianHoffmann2</dc:creator>
      <dc:date>2023-11-06T09:59:15Z</dc:date>
    </item>
  </channel>
</rss>

