Desktop productivity for business analysts and programmers

SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

Reply
New Contributor
Posts: 3

SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

Hi Everyone,

I am trying to integrate the Enhanced editor inside C#.net (Windows application). I have following environment.

1. Visual Studio 2010

2. SAS EG 6.1

3. .Net Framework 4.0

I referred SAS.Tasks.Toolkit in to my project and used SAS.Tasks.Toolkit.Controls.SASTextEditorCtl in a form. After compiling and executing the project, when I try to type inside the editor control, I don't get any Intellisense for SAS code. Even Expand and collapse option for SAS program structure also not displayed. I even copied SAS.EnhancedEditorData.dll inside the Debug folder, but still I didn't get expected result. Am I missing any other dlls?

Kindly help me to resolve this issue.

Thanks,

Raja

Super User
Super User
Posts: 7,720

Re: SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

Interesting.  I would be interested to know how SAS integrates with .net (as I am not a big fan of Java), send me a message if you don't want to post code publicly.  I only have a suggestion for you, other IDE's have a text editor with a parameter to load a schema file (a bit like  a CSS) with all the functions structure, colorings etc.  You maybe missing that part.  Otherwise the only thing I can think of is actually embedding another editor - all of the ones out there from Notepadd++ to Exclipse - tend to have more functionality than the Enhanced Editor, and they have plugins for many different languages, here is Notepad++ which has a SAS one:

http://npp-wiki.tuxfamily.org/index.php?title=User_Defined_Language_Files

New Contributor
Posts: 3

Re: SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

RW9,

Thanks for your reply. I actually needed only SASTextEditorCtl in my windows application.

Community Manager
Posts: 2,889

Re: SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

RW9,

You might be interested in this article.  It also contains links to a detailed paper and a GitHub repository with a working example.

Build your own SAS client app with Microsoft .NET - The SAS Dummy

Chris

Super User
Super User
Posts: 7,720

Re: SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

Thank you Chris, very informative.

Community Manager
Posts: 2,889

Re: SAS tasks toolkit editor Control when used in C# does not lists intellisense for SAS code

Raja,

The step-by-step instructions for incorporating this control into a custom task are covered in Chapter 12 of Custom Tasks for SAS Enterprise Guide using Microsoft .NET.

I also have another working example of this available from here (with source code):


http://go.sas.com/customtasksapi

Specifically, you want the SAS Program Runner example.  It's a custom task that looks like this (running in my SAS Enterprise Guide 6.1):

programrunner.png

Note: SAS supports the use of this control only within custom tasks that are running in SAS Enterprise Guide or SAS Add-In for Microsoft Office.  You may not use these libraries within other standalone applications.  They may not work for technical reasons, but beyond that these code libraries are not permitted for use outside of the SAS applications that they ship with.

Chris

Ask a Question
Discussion stats
  • 5 replies
  • 596 views
  • 0 likes
  • 3 in conversation