Desktop productivity for business analysts and programmers

Some questions about Custom Tasks

Posts: 43

Some questions about Custom Tasks


1) I need to know within the custom task wich application is calling it : Excel, Word, etc. Is it possible ? I tried this :


But it is not enough. I can only know if it is Guide or an Add-In.

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.

3) Is it possible to communicate with the calling application (Excel, word) ? As same as VBA objects for example : Application, Workbooks, ActiveWoorkBook ?

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.

Community Manager
Posts: 3,457

Re: Some questions about Custom Tasks


Some answers:

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.

2. You can indirectly call the file dialog to select a data set with the ISASTaskConsumer2.ShowDataSelector method.

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).

4. Yes, in the 4.2 releases of EG and Office Add-In, these mechanisms have converged to be the same.

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation