I won’t go into too much detail here, but to add tools to the OpenSpan Toolbox, create a class library project in Visual Studio. In your class, (Let’s call it MyTools) create ‘public static’ methods. Build the project, and copy the resulting DLL file (In this case MyTools.dll) into the OpenSpan Studio folder.
In the Toolbox window right click and select Add Tab and give it a name (My Tools?), if you want your toolbox items under a separate tab. Right click again and select Add Items… In the ‘Add Toolbox Items’ dialog box, click on the Browse… button and navigate to the folder containing the DLL file with your tools. Select the ‘Static Members’tab in the ‘Add Toobox Items’ dialog. Expand the tree and check the box next to the method(s) you wish to include in the Toolbox. Click OK to close the ‘Add Toobox Items’ dialog, and add the methods to the Toolbox.
To use a method in an automation: Find that method in the OpenSpan Toolbox and drag it onto the automation page. Connect method to other automation methods.
- Make sure you build your DLL using the same version of the .NET framework, the OpenSpan solution is using, You won’t get an error, but you can’t add the methods to the toolbox. You can see an error if you try add the DLL as a reference to a project.
- Once you add the methods to the toolbox, you can’t replace the DLL, until Visual Studio is shutdown.