<?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: Some questions about Custom Tasks in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Some-questions-about-Custom-Tasks/m-p/73047#M7264</link>
    <description>Victor,&lt;BR /&gt;
&lt;BR /&gt;
Some answers:&lt;BR /&gt;
&lt;BR /&gt;
1. You can use .NET calls to determine the application.  For example, you can use System.Diagnostics.Process.GetCurrentProcess() to gather information about the current running process, including the EXE name.&lt;BR /&gt;
&lt;BR /&gt;
2. You can indirectly call the file dialog to select a data set with the ISASTaskConsumer2.ShowDataSelector method.&lt;BR /&gt;
&lt;BR /&gt;
3. We don't provide a direct hook into the Office object models, but you might be able to gain access by using the GetCurrentProcess() approach as outlined in (1).&lt;BR /&gt;
&lt;BR /&gt;
4. Yes, in the 4.2 releases of EG and Office Add-In, these mechanisms have converged to be the same.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
    <pubDate>Tue, 24 Feb 2009 17:39:44 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2009-02-24T17:39:44Z</dc:date>
    <item>
      <title>Some questions about Custom Tasks</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Some-questions-about-Custom-Tasks/m-p/73046#M7263</link>
      <description>Hello&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1) I need to know within the custom task wich application is calling it : Excel, Word, etc. Is it possible ? I tried this :&lt;BR /&gt;
&lt;BR /&gt;
_consumer.Option(EnvironmentOption.HostApplicationName)&lt;BR /&gt;
&lt;BR /&gt;
But it is not enough. I can only know if it is Guide or an Add-In. &lt;BR /&gt;
&lt;BR /&gt;
2) Is it possible to call Add-In dialog boxes within the custom task? like "Server Connexion", "Open a data table", "Stored Process List", etc.&lt;BR /&gt;
&lt;BR /&gt;
3) Is it possible to communicate with the calling application (Excel, word) ? As same as VBA objects for example : Application, Workbooks, ActiveWoorkBook ?&lt;BR /&gt;
&lt;BR /&gt;
4) Add-In's and Guide's Server Configuration are very different. Is there a project to make them the same? In guide, you can simply change the server by choosing it in a list box. In Add-in, you have to go into the configuration form to change the server. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards</description>
      <pubDate>Fri, 06 Feb 2009 12:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Some-questions-about-Custom-Tasks/m-p/73046#M7263</guid>
      <dc:creator>Victor</dc:creator>
      <dc:date>2009-02-06T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Some questions about Custom Tasks</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Some-questions-about-Custom-Tasks/m-p/73047#M7264</link>
      <description>Victor,&lt;BR /&gt;
&lt;BR /&gt;
Some answers:&lt;BR /&gt;
&lt;BR /&gt;
1. You can use .NET calls to determine the application.  For example, you can use System.Diagnostics.Process.GetCurrentProcess() to gather information about the current running process, including the EXE name.&lt;BR /&gt;
&lt;BR /&gt;
2. You can indirectly call the file dialog to select a data set with the ISASTaskConsumer2.ShowDataSelector method.&lt;BR /&gt;
&lt;BR /&gt;
3. We don't provide a direct hook into the Office object models, but you might be able to gain access by using the GetCurrentProcess() approach as outlined in (1).&lt;BR /&gt;
&lt;BR /&gt;
4. Yes, in the 4.2 releases of EG and Office Add-In, these mechanisms have converged to be the same.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 24 Feb 2009 17:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Some-questions-about-Custom-Tasks/m-p/73047#M7264</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2009-02-24T17:39:44Z</dc:date>
    </item>
  </channel>
</rss>

