<?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 Accessing IPageLayout interface through SOE (ArcGis for server 10.2) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578017#M15605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to update a server object extension to version 10.2. The extension resize the page, and change position of various page elements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the beginning code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;IServerObject so = this.serverObjectHelper.ServerObject; IMapServerObjects3 mapServerObjects = (IMapServerObjects3)so; IPageLayout3 pageLayout = (IPageLayout3)mapServerObjects.PageLayout; &lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The cast of mapServerObjects raises an exception. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that since version 10.1 some interface that accessed the mxd must be avoided, in favor of ArcObjects working with map services. I just can't find anything that suits my needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that manipulating page layouts from version 10.1 isn't available anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do someone knows how to access Page layout elements, or a workaround ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(python toolbox isn't an option neither since ArcPy doesn't expose methods to manipulate grids, apparently)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 13:38:07 GMT</pubDate>
    <dc:creator>StéphaneCouderq</dc:creator>
    <dc:date>2013-12-05T13:38:07Z</dc:date>
    <item>
      <title>Accessing IPageLayout interface through SOE (ArcGis for server 10.2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578017#M15605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to update a server object extension to version 10.2. The extension resize the page, and change position of various page elements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the beginning code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;IServerObject so = this.serverObjectHelper.ServerObject; IMapServerObjects3 mapServerObjects = (IMapServerObjects3)so; IPageLayout3 pageLayout = (IPageLayout3)mapServerObjects.PageLayout; &lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The cast of mapServerObjects raises an exception. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that since version 10.1 some interface that accessed the mxd must be avoided, in favor of ArcObjects working with map services. I just can't find anything that suits my needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that manipulating page layouts from version 10.1 isn't available anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do someone knows how to access Page layout elements, or a workaround ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(python toolbox isn't an option neither since ArcPy doesn't expose methods to manipulate grids, apparently)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578017#M15605</guid>
      <dc:creator>StéphaneCouderq</dc:creator>
      <dc:date>2013-12-05T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing IPageLayout interface through SOE (ArcGis for server 10.2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578018#M15606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to update a server object extension to version 10.2&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;From version 10.0 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It appears that manipulating page layouts from version 10.1 isn't available anymore.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm surprised that worked at version 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a blog about this.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2010/11/12/accessing-optimized-map-services-with-server-object-extensions/"&gt;http://blogs.esri.com/esri/arcgis/2010/11/12/accessing-optimized-map-services-with-server-object-extensions/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Because optimized map service use a completely different drawing engine&amp;nbsp; and source file than MXD-based services, they draw very quickly.&amp;nbsp; However, this also means that they do not support full ArcObjects access&amp;nbsp; from the Carto library. When working with optimized map services, you&amp;nbsp; cannot use any ArcObjects directly related to the map document, such as&amp;nbsp; IMapServerObjects, IMap, ILayer, and IFeatureLayer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since PageLayout uses IMap, I'm guessing this is why you can't use IPageLayout3 in a SOE.&amp;nbsp; I don't know of another way to manipulate page layout elements in a SOE, unless you want to go back to version 10.0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 14:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578018#M15606</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2013-12-05T14:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing IPageLayout interface through SOE (ArcGis for server 10.2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578019#M15607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The extension was working in ArcGis server 10.0 before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your reply i understand that Page layout elements can not be accessed from a SOE (.NET with SOAP) for version 10.2 ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 06:02:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578019#M15607</guid>
      <dc:creator>StéphaneCouderq</dc:creator>
      <dc:date>2013-12-06T06:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing IPageLayout interface through SOE (ArcGis for server 10.2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578020#M15608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as "dirty" workaround, you can open the mxd in file in the SOE-ArcObjects code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 06:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578020#M15608</guid>
      <dc:creator>TomSchuller</dc:creator>
      <dc:date>2013-12-06T06:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing IPageLayout interface through SOE (ArcGis for server 10.2)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578021#M15609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the reply Tom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually the dirty (?) approach of accessing directly the map document seems our only working option for now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 11:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessing-ipagelayout-interface-through-soe-arcgis/m-p/578021#M15609</guid>
      <dc:creator>StéphaneCouderq</dc:creator>
      <dc:date>2013-12-12T11:26:13Z</dc:date>
    </item>
  </channel>
</rss>

