<?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 CNTL_ERROR when calling Desktop Office Integration remotely in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cntl-error-when-calling-desktop-office-integration-remotely/m-p/935210#M61803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to call a RFC from Web Dynpro. This RFC should read a Word document from the database and merge it with variables coming from the Web Dynpro and send the binair code back to the Web Dynpro. &lt;/P&gt;&lt;P&gt;Now it seems that the Desktop Office Integration works fine in the foreground, but not if I try to call this remotely. In that case I get an CNTL error, probably because it needs a GUI. &lt;/P&gt;&lt;P&gt;The first part of the code I use is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD   c_oi_container_control_creator=&amp;gt;get_container_control&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       control = control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT container&lt;/P&gt;&lt;P&gt;            EXPORTING container_name = 'CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD control-&amp;gt;init_control&lt;/P&gt;&lt;P&gt;         EXPORTING r3_application_name = 'MS WORD'&lt;/P&gt;&lt;P&gt;                   inplace_enabled = 'X' &lt;/P&gt;&lt;P&gt;                   inplace_scroll_documents = 'X'&lt;/P&gt;&lt;P&gt;                   parent = container&lt;/P&gt;&lt;P&gt;                   register_on_close_event = 'X'&lt;/P&gt;&lt;P&gt;                   register_on_custom_event = 'X'&lt;/P&gt;&lt;P&gt;                   no_flush = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is thrown from method init_control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to remotely use this kind of functionality? (If not, I probably will have to use Adobe forms as alternative).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michiel van Rhoon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2005 11:25:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-19T11:25:08Z</dc:date>
    <item>
      <title>CNTL_ERROR when calling Desktop Office Integration remotely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cntl-error-when-calling-desktop-office-integration-remotely/m-p/935210#M61803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to call a RFC from Web Dynpro. This RFC should read a Word document from the database and merge it with variables coming from the Web Dynpro and send the binair code back to the Web Dynpro. &lt;/P&gt;&lt;P&gt;Now it seems that the Desktop Office Integration works fine in the foreground, but not if I try to call this remotely. In that case I get an CNTL error, probably because it needs a GUI. &lt;/P&gt;&lt;P&gt;The first part of the code I use is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD   c_oi_container_control_creator=&amp;gt;get_container_control&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       control = control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT container&lt;/P&gt;&lt;P&gt;            EXPORTING container_name = 'CONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD control-&amp;gt;init_control&lt;/P&gt;&lt;P&gt;         EXPORTING r3_application_name = 'MS WORD'&lt;/P&gt;&lt;P&gt;                   inplace_enabled = 'X' &lt;/P&gt;&lt;P&gt;                   inplace_scroll_documents = 'X'&lt;/P&gt;&lt;P&gt;                   parent = container&lt;/P&gt;&lt;P&gt;                   register_on_close_event = 'X'&lt;/P&gt;&lt;P&gt;                   register_on_custom_event = 'X'&lt;/P&gt;&lt;P&gt;                   no_flush = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is thrown from method init_control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to remotely use this kind of functionality? (If not, I probably will have to use Adobe forms as alternative).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michiel van Rhoon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2005 11:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cntl-error-when-calling-desktop-office-integration-remotely/m-p/935210#M61803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-19T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: CNTL_ERROR when calling Desktop Office Integration remotely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cntl-error-when-calling-desktop-office-integration-remotely/m-p/935211#M61804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as you have identified already, this is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method init_control needs GUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save the word file in XML format in SAP DB. read it and modify it with the values coming from webdynpro and send this xml to webdynpro and let the webdynpro convert this xml to the required format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2005 11:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cntl-error-when-calling-desktop-office-integration-remotely/m-p/935211#M61804</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-07-19T11:34:05Z</dc:date>
    </item>
  </channel>
</rss>

