<?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: Convert Labels to Annotations .NET Sample in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94823#M2533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/28270"&gt;Corbin de Bruin&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; What version of ArcMap are you using? (10.1, 10.2, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; What license level do you have for Arc Map? (Basic, Standard, Advanced)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; What service packs do you have installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; What operating system are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)&amp;nbsp; Do you have data interop installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)&amp;nbsp; Are you using VB.NET or C#?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 23:09:40 GMT</pubDate>
    <dc:creator>AlexanderNohe1</dc:creator>
    <dc:date>2015-03-12T23:09:40Z</dc:date>
    <item>
      <title>Convert Labels to Annotations .NET Sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94822#M2532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Goal: &lt;/STRONG&gt;Convert labels to Annotations using ArcObjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Method:&lt;/STRONG&gt; I ran an ESRI code sample from the documentation and received this error:&lt;/P&gt;&lt;P&gt;"A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in GdB Subsurface Investigation v103.dll&lt;/P&gt;&lt;P&gt;Additional information: Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/P&gt;&lt;P&gt;If there is a handler for this exception, the program may be safely continued."&lt;/P&gt;&lt;P&gt;Code sample found here: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/00010000024r000000.htm" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/00010000024r000000.htm"&gt;Covert Labels Sample Code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is call I make to the function: ConvertLabelsToGDBAnnotationSingleLayer(pMap, 0, False)&lt;/P&gt;&lt;P&gt;pMap is a properly declared and set IMap object.&lt;/P&gt;&lt;P&gt;There is only one layer in the MXD, and I have confirmed (as expected) that it is found at index 0.&lt;/P&gt;&lt;P&gt;The last parameter is a boolean to set Feature Linked annotations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error occurs on this line:&lt;/P&gt;&lt;P&gt;pConvertLabelsToAnnotation.AddFeatureLayer(pGeoFeatureLayer, pGeoFeatureLayer.Name &amp;amp; "_Anno",&amp;nbsp; pFeatureWorkspace, pFeatureClass.FeatureDataset, featureLinked, False, False, True, True, "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there a way to use code tags in this forum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 17:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94822#M2532</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2015-03-11T17:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Labels to Annotations .NET Sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94823#M2533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/28270"&gt;Corbin de Bruin&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; What version of ArcMap are you using? (10.1, 10.2, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; What license level do you have for Arc Map? (Basic, Standard, Advanced)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; What service packs do you have installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; What operating system are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)&amp;nbsp; Do you have data interop installed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6)&amp;nbsp; Are you using VB.NET or C#?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 23:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94823#M2533</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2015-03-12T23:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Labels to Annotations .NET Sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94824#M2534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/28270"&gt;Corbin de Bruin&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing some additional testing on my end, I was able to reproduce the issue that you are seeing only when the layer of index value 0 was not labeled.&amp;nbsp; Can you make sure that this layer is labeled when you run the sample and try again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alexander N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 23:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94824#M2534</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2015-03-12T23:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Labels to Annotations .NET Sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94825#M2535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Also, is there a way to use code tags in this forum?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the link to Use advanced editor, then: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;highlight the code to format, &lt;/LI&gt;&lt;LI&gt;click on the &amp;gt;&amp;gt; (insert) button&lt;/LI&gt;&lt;LI&gt;select Syntax Highlighting &amp;gt; then pick a language&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 00:26:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94825#M2535</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-03-13T00:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Labels to Annotations .NET Sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94826#M2536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is just becoming an issue again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;1)&amp;nbsp; What version of ArcMap are you using? (10.1, 10.2, ...)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt; ArcDesktop 10.3.0&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;2)&amp;nbsp; What license level do you have for Arc Map? (Basic, Standard, Advanced)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt; Advanced&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;3)&amp;nbsp; What service packs do you have installed?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Not sure.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;4)&amp;nbsp; What operating system are you using?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Windows 7&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;5)&amp;nbsp; Do you have data interop installed?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt; No&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;6)&amp;nbsp; Are you using VB.NET or C#?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt; VB.NET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:02:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94826#M2536</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2016-07-01T18:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Labels to Annotations .NET Sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94827#M2537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is becoming an issue again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ensured the labels were on and ran again. Same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 18:03:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-labels-to-annotations-net-sample/m-p/94827#M2537</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2016-07-01T18:03:16Z</dc:date>
    </item>
  </channel>
</rss>

