<?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: Metadata stylesheet in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728180#M19406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes Otto, you can email me at &lt;/SPAN&gt;&lt;A href="mailto:cpicciri@sfwmd.gov"&gt;cpicciri@sfwmd.gov&lt;/A&gt;&lt;SPAN&gt; if you wish. Yes, I speak Spanish. Unfortunately, I have not found a solution to the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello Carlos,&lt;BR /&gt;&lt;BR /&gt;I am dealing with same problem. May I email you? It is just because I think you speak Spanish and that is my language.&lt;BR /&gt;&lt;BR /&gt;Thank you in advantage,&lt;BR /&gt;&lt;BR /&gt;Otto Arturo.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2013 09:48:06 GMT</pubDate>
    <dc:creator>CarlosPiccirillo</dc:creator>
    <dc:date>2013-03-19T09:48:06Z</dc:date>
    <item>
      <title>Metadata stylesheet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728178#M19404</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;BR /&gt;&lt;SPAN&gt;I am converting C# code from ArcGIS 9.3 to 10.1 and have hit a wall trying to set the metadata stylesheet in code. In 9.3 the code to change the stylesheet was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMetadataViewWindow metadataWindow = new MetadataViewWindowClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;metadataWindow.Layer = pLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;metadataWindow.Application = m_application;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;metadataWindow.DataSource = pDataLayer.DataSourceName as IDatasetName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;metadataWindow.MetadataHelper.Stylesheet = "FGDC ESRI";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The main problem is that the Stylesheet property on the IMetadataViewWindow interface is read only in 10.1 where it used to be read/write in 9.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My attempt at the 10.1 code using the IMetadataHelper Stylesheet Example is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IExtension pExtension = m_application.FindExtensionByName("ESRI Metadata Extension") as IExtension;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IMetadataHelper pMetadataHelper = pExtension as IMetadataHelper;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pMetadataHelper.Stylesheet = "ARCGIS";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried pMetadataHelper.Stylesheet = "FGDC ESRI"; and pMetadataHelper.Stylesheet = "FGDC CSDGM Metadata";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code produces no errors but it does not work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Opening some metadata after running the code produces the default "Item Description" metadata style. I can change it manually by going to Customize &amp;gt; Options and on the Metadata tab choose the style I want but I need to do this in code because most of the users accessing our code are not very ArcGIS literate so the more things I can automate, the better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked through the old forums as well as the new ones and found very few posts dealing with metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlos&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 17:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728178#M19404</guid>
      <dc:creator>CarlosPiccirillo</dc:creator>
      <dc:date>2013-03-12T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata stylesheet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728179#M19405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Carlos,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am dealing with same problem. May I email you? It is just because I think you speak Spanish and that is my language.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advantage,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otto Arturo.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728179#M19405</guid>
      <dc:creator>OttoArturo</dc:creator>
      <dc:date>2013-03-18T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Metadata stylesheet</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728180#M19406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes Otto, you can email me at &lt;/SPAN&gt;&lt;A href="mailto:cpicciri@sfwmd.gov"&gt;cpicciri@sfwmd.gov&lt;/A&gt;&lt;SPAN&gt; if you wish. Yes, I speak Spanish. Unfortunately, I have not found a solution to the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello Carlos,&lt;BR /&gt;&lt;BR /&gt;I am dealing with same problem. May I email you? It is just because I think you speak Spanish and that is my language.&lt;BR /&gt;&lt;BR /&gt;Thank you in advantage,&lt;BR /&gt;&lt;BR /&gt;Otto Arturo.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 09:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/metadata-stylesheet/m-p/728180#M19406</guid>
      <dc:creator>CarlosPiccirillo</dc:creator>
      <dc:date>2013-03-19T09:48:06Z</dc:date>
    </item>
  </channel>
</rss>

