<?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: REST service cannot access MicroSoft Word via Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/rest-service-cannot-access-microsoft-word-via/m-p/346114#M27150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have to add arcgissic user to DCOM config on the arcgis server. Allow permissions to allow local/remote launch, local/remote activation, and loca/remote access permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 18:42:27 GMT</pubDate>
    <dc:creator>RyanKelley</dc:creator>
    <dc:date>2012-05-30T18:42:27Z</dc:date>
    <item>
      <title>REST service cannot access MicroSoft Word via Python</title>
      <link>https://community.esri.com/t5/python-questions/rest-service-cannot-access-microsoft-word-via/m-p/346113#M27149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(I posted the original post on the REST API forum as well on Friday: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/58532-REST-service-cannot-access-MicroSoft-Word-via-Python"&gt;http://forums.arcgis.com/threads/58532-REST-service-cannot-access-MicroSoft-Word-via-Python&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Surely someone out there is creating a report in MicroSoft Word in python executed from a REST service!?!?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My script calls this line to access Microsoft Word (win32com.client.Dispatch("Word.Application")) - but fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can run the script (as myself or the arcgissoc user) on the same server ArcGIS server is using, which tells me Word is on the server. But, when I run the script from the REST endpoint, I get a permissions problem &lt;/SPAN&gt;&lt;STRONG&gt;related to the COM&lt;/STRONG&gt;&lt;SPAN&gt;. Write permissions are set properly for the arcgissoc user to access the win32com libraries.&amp;nbsp; There must be some setting in the COM administrator related to Word that the arcgissoc user needs write access too. Maybe?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;line 241, in wordapp = win32com.client.Dispatch("Word.Application") File "C:\Python26\ArcGIS10.0\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) File "C:\Python26\ArcGIS10.0\lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "C:\Python26\ArcGIS10.0\lib\site-packages\win32com\client\dynamic.py", line 78, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) com_error: (-2147024891, 'Access is denied.', None, None) (-2147024891, 'Access is denied.', None, None)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 18:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rest-service-cannot-access-microsoft-word-via/m-p/346113#M27149</guid>
      <dc:creator>JefferyNighbert</dc:creator>
      <dc:date>2012-05-29T18:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST service cannot access MicroSoft Word via Python</title>
      <link>https://community.esri.com/t5/python-questions/rest-service-cannot-access-microsoft-word-via/m-p/346114#M27150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have to add arcgissic user to DCOM config on the arcgis server. Allow permissions to allow local/remote launch, local/remote activation, and loca/remote access permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 18:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rest-service-cannot-access-microsoft-word-via/m-p/346114#M27150</guid>
      <dc:creator>RyanKelley</dc:creator>
      <dc:date>2012-05-30T18:42:27Z</dc:date>
    </item>
  </channel>
</rss>

