This document describes the development process to create a customized O-Calc Pro Plugins and Reports. O-Calc Pro Plugins can be created to perform a wide verity of functions within the O-Calc Pro interface from importing data from some type of field data collection device to exporting the data to different formats or into specialized databases. Plugins can also be developed that manipulate the data right within the O-Calc Pro interface.
Before you can start to develop an O-Calc Pro Plugin, a few prerequisites are necessary.
C:\Users\<username>\Documents\Visual Studio 2012\Templates\ProjectTemplates
A zip file of the O-Calc Pro Visual Studio Templates can be downloaded from the O-Calc Pro User’s Website (http://www.osmoseutilities.com/o-calcpro). The ‘O-Calc Pro Visual Studio Templates.zip’ file contains two additional zip files in an ‘O-Calc Pro’ subfolder that would be exacted and placed right in the ProjectTemplates folder list above without further unzipping of the files.
Note: You must use Visual Studio 2012 or Visual Studio Express 2012 for these templates to work. This document uses examples from Visual Studio Express 2012 for Windows Desktop which can be download at http://www.microsoft.com/en-us/download/details.aspx?id=34673
There are two Microsoft Visual Studio templates that can help jumpstart your O-Calc Pro custom development. Within in Visual Studio Express 2012, a new development project can be started by selecting File -> New Project. The O-Calc Pro templates are Visual C# Templates with the names:
O-Calc Pro Plugin
O-Calc Pro Report
In the screenshot below, the O-Calc Pro Plugin template has been selected and a unique project name of ‘MyOCalcProPlugin’ has been entered.
The O-Calc Pro Plugin visual studio project includes three components that developer can make use of:
The O-Calc Pro Report visual studio project includes four components that the developer can make use of: