<?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: Access static resources like html page in  the project. in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065224#M6677</link>
    <description>&lt;P&gt;You can look at the 'Chromium Web Browser Control' community sample which implements references to various embedded resources, however, it passes the content to a Chromium web browser control:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ChromiumWebBrowserSample" target="_blank"&gt;arcgis-pro-sdk-community-samples/Framework/ChromiumWebBrowserSample at master · Esri/arcgis-pro-sdk-community-samples (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I modified and attached that sample to include a local html file - I followed the instructions from my link listed in my previous post.&amp;nbsp; When you run the sample you can duplicate your use case with the add-in like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1622828750454.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15207i3D80D307ABDD31DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1622828750454.png" alt="Wolf_0-1622828750454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1622828757597.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15208i4FE1B016B8D4DB90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1622828757597.png" alt="Wolf_1-1622828757597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 17:45:33 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2021-06-04T17:45:33Z</dc:date>
    <item>
      <title>Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065135#M6668</link>
      <description>&lt;P&gt;I am creating an AddIn menu as a help page which will call an HTML page. I have added the recourse folder in my solution. How to specify the path so that any user can assess the HTML file from the help menu. I can assess the HTML when I am debugging it from Visual Studio. But when I am running the ArcGIS Pro separately, I cannot form the path to assess the help HTML. Please help.&lt;/P&gt;&lt;P&gt;How to assess the HTML file from the .esriAddInX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SDK 2.8, VS2019, ArcGIS 2.8.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 14:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065135#M6668</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-04T14:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065139#M6669</link>
      <description>&lt;P&gt;Do you include your HTML help file in your add-in?&amp;nbsp; If so did you follow these conventions:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Content-and-Image-Resources" target="_blank"&gt;ProGuide Content and Image Resources · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Otherwise please provide a code snippet with you file path logic.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:09:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065139#M6669</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-04T15:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065146#M6672</link>
      <description>&lt;P&gt;Yes, I have added the help folder in the Addin. Below is the code snippet I am trying to create the URL.&lt;/P&gt;&lt;P&gt;protected override void OnClick()&lt;BR /&gt;{&lt;BR /&gt;ErrorLog erl = new ErrorLog(); // Error handling class&lt;BR /&gt;string startupPath = Path.GetFullPath("help/EN/gishelp.htm");&lt;BR /&gt;erl.ErrorLogging("File Path for gishelp.html: " + startupPath); // Logging error in some file.&lt;BR /&gt;&lt;BR /&gt;string pathToHtmlFile = FilePathToFileUrl(startupPath);&lt;BR /&gt;var charsToRemove = new string[] { "bin/", "Debug/"};&lt;BR /&gt;foreach (var c in charsToRemove)&lt;BR /&gt;{&lt;BR /&gt;pathToHtmlFile = pathToHtmlFile.Replace(c, string.Empty);&lt;BR /&gt;}&lt;BR /&gt;System.Diagnostics.Process.Start("chrome",pathToHtmlFile);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065146#M6672</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-04T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065164#M6674</link>
      <description>&lt;P&gt;I have included the Help folder in the solution but after build and installation, the folder is not getting included in the Add-in folder. How can I build the solution to include the help folder get added in the Add-in?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065164#M6674</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-04T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065165#M6675</link>
      <description>&lt;P&gt;The HTML file's Build Action must be set to Content, and the Copy to Output Directory setting must be something besides "Do not copy". That will ensure it gets compiled into the add-in, then you can access it from the assembly via &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Content-and-Image-Resources#accessing-document-content" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Content-and-Image-Resources#accessing-document-content&lt;/A&gt;. This works both in Visual Studio and when deployed.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 15:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065165#M6675</guid>
      <dc:creator>tempStephenRhea_NV5</dc:creator>
      <dc:date>2021-06-04T15:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065174#M6676</link>
      <description>&lt;P&gt;I have added the help folder as below in Visual Studio and made all the containing files as AddInContent.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TapasChakrabarty_0-1622822524048.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15187i8615367F599CB49D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TapasChakrabarty_0-1622822524048.png" alt="TapasChakrabarty_0-1622822524048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But Still after building the solution, the help folder doesn't reflect under the Add-in folder. Only the .esriAddInX is visible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TapasChakrabarty_1-1622822749912.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15188i996577E41327D878/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TapasChakrabarty_1-1622822749912.png" alt="TapasChakrabarty_1-1622822749912.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 16:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065174#M6676</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-04T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065224#M6677</link>
      <description>&lt;P&gt;You can look at the 'Chromium Web Browser Control' community sample which implements references to various embedded resources, however, it passes the content to a Chromium web browser control:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ChromiumWebBrowserSample" target="_blank"&gt;arcgis-pro-sdk-community-samples/Framework/ChromiumWebBrowserSample at master · Esri/arcgis-pro-sdk-community-samples (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I modified and attached that sample to include a local html file - I followed the instructions from my link listed in my previous post.&amp;nbsp; When you run the sample you can duplicate your use case with the add-in like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1622828750454.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15207i3D80D307ABDD31DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1622828750454.png" alt="Wolf_0-1622828750454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_1-1622828757597.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15208i4FE1B016B8D4DB90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_1-1622828757597.png" alt="Wolf_1-1622828757597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 17:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065224#M6677</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-04T17:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access static resources like html page in  the project.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065245#M6679</link>
      <description>&lt;P&gt;The .esriAddinX is a zip file and gets unzipped when ArcGIS Pro starts.&amp;nbsp; Run ArcGIS pro and double check the folder content after Pro started.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 18:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/access-static-resources-like-html-page-in-the/m-p/1065245#M6679</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-04T18:25:09Z</dc:date>
    </item>
  </channel>
</rss>

