12-19-2014 02:51 AM
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.
12-19-2014 04:52 AM
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:
12-19-2014 07:55 AM
You might be interested in this article. It also contains links to a detailed paper and a GitHub repository with a working example.
12-19-2014 07:52 AM
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):
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):
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.