<?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: MapControl in PowerPoint Slide in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27696#M735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You have to check out a license if you are using ArcObjects components in a non-esri application (like office). Do you already get a license via the IAoInitialize interface?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I have a procedure that checks that the license is available and not checked out.&amp;nbsp; I debugged it to make sure that code runs successfully and it does.&amp;nbsp; I still get the AddShapeFile error though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 22:43:48 GMT</pubDate>
    <dc:creator>ClaudeBanta</dc:creator>
    <dc:date>2010-08-23T22:43:48Z</dc:date>
    <item>
      <title>MapControl in PowerPoint Slide</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27694#M733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use an ESRI MapControl in a PowerPoint slide via a VBA macro.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use the AddShapefile or AddLayerFromFile method to add layers, I get the following error at runtime:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Method 'AddShapeFile' of object 'IMapControlDefault' failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax I'm using is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Me.MapControl1.AddShapeFile "C:\mywork\shapefiles", "cities"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried it with a backslash after the path and a ".shp" after "cities" but that didn't help. I also tried my luck with AddLayerFromFile but no dice. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have other ideas about how to get it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 19:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27694#M733</guid>
      <dc:creator>ClaudeBanta</dc:creator>
      <dc:date>2010-08-22T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: MapControl in PowerPoint Slide</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27695#M734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to check out a license if you are using ArcObjects components in a non-esri application (like office). Do you already get a license via the IAoInitialize interface?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 06:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27695#M734</guid>
      <dc:creator>JanDuske</dc:creator>
      <dc:date>2010-08-23T06:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: MapControl in PowerPoint Slide</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27696#M735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You have to check out a license if you are using ArcObjects components in a non-esri application (like office). Do you already get a license via the IAoInitialize interface?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I have a procedure that checks that the license is available and not checked out.&amp;nbsp; I debugged it to make sure that code runs successfully and it does.&amp;nbsp; I still get the AddShapeFile error though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 22:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27696#M735</guid>
      <dc:creator>ClaudeBanta</dc:creator>
      <dc:date>2010-08-23T22:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: MapControl in PowerPoint Slide</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27697#M736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just want to let everyone know I got it working! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The solution was to use AddLayerFromFile and point to the .lyr file (which in turn pointed to the shapefiles).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 00:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27697#M736</guid>
      <dc:creator>ClaudeBanta</dc:creator>
      <dc:date>2010-08-24T00:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: MapControl in PowerPoint Slide</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27698#M737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi cbanta,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am also trying to do the same, i want to add a ArcMap .mxd to a powerpoint slide. can u kidnly tell me how can that be done?? the macro code for it and procedure?? would appreciate ur help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Osman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Oct 2011 06:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mapcontrol-in-powerpoint-slide/m-p/27698#M737</guid>
      <dc:creator>UsmanJamil</dc:creator>
      <dc:date>2011-10-01T06:31:03Z</dc:date>
    </item>
  </channel>
</rss>

