VB.NET API Library Setup: Difference between revisions

From RangerMSP Wiki - PSA software for MSPs and IT services providers
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Decompress the downloaded archive to a destination folder of your choice. In the root folder '''CommitCRM-VB.NET''' you’ll find two solution files:
Decompress the downloaded archive to a destination folder of your choice. In the root folder '''CRM-VB.NET''' you’ll find two solution files:


* '''CommitCRM-VB.NET-2008.sln''' – for Visual Studio 2008  
* '''CRM-VB.NET-2008.sln''' – for Visual Studio 2008  
* '''CommitCRM-VB.NET-2010.sln''' – for Visual Studio 2010
* '''CRM-VB.NET-2010.sln''' – for Visual Studio 2010


Depending of what version is installed on the local computer, open the one or the other solution file.  
Depending of what version is installed on the local computer, open the one or the other solution file.  
Line 8: Line 8:
The distributed files are plain source files (there are no precompiled files included), so you’ll have to rebuild the whole solution.  
The distributed files are plain source files (there are no precompiled files included), so you’ll have to rebuild the whole solution.  


After everything is compiled, locate the '''Module1.vb''' file in the '''Sample1''' project and ensure that '''config.CommitDllFolder''' and '''config.CommitDbFolder''' point to the correct paths on your computer (<your-server>\CommitCRM\ThirdParty\UserDev and <your-server>\CommitCRM\Db  accordingly)..  
After everything is compiled, locate the '''Module1.vb''' file in the '''Sample1''' project and ensure that '''config.DllFolder''' and '''config.DbFolder''' point to the correct paths on your computer (<your-server>\RangerMSP\ThirdParty\UserDev and <your-server>\RangerMSP\Db  accordingly)..  


The file has many comments explaining each step, we recommend examining '''Module1.vb''' source file before executing the compiled program. In a nutshell, the sample will search for an account (if it doesn’t find it, it will create new one), and then demonstrates adding/searching for a ticket and adding/listing charges.
The file has many comments explaining each step, we recommend examining '''Module1.vb''' source file before executing the compiled program. In a nutshell, the sample will search for an account (if it doesn’t find it, it will create new one), and then demonstrates adding/searching for a ticket and adding/listing charges.


To use the library in your own project you’ll have to reference the '''CommitLib.dll''' (the DLL will be created after compiling the source code).
To use the library in your own project you’ll have to reference the '''CRMLib.dll''' (the DLL will be created after compiling the source code).


[[CRM_VB.NET_API|Back to CommitCRM VB.NET API Page]]
[[VB.NET_API|Back to RangerMSP VB.NET API Page]]

Latest revision as of 13:54, 8 July 2020

Decompress the downloaded archive to a destination folder of your choice. In the root folder CRM-VB.NET you’ll find two solution files:

  • CRM-VB.NET-2008.sln – for Visual Studio 2008
  • CRM-VB.NET-2010.sln – for Visual Studio 2010

Depending of what version is installed on the local computer, open the one or the other solution file.

The distributed files are plain source files (there are no precompiled files included), so you’ll have to rebuild the whole solution.

After everything is compiled, locate the Module1.vb file in the Sample1 project and ensure that config.DllFolder and config.DbFolder point to the correct paths on your computer (<your-server>\RangerMSP\ThirdParty\UserDev and <your-server>\RangerMSP\Db accordingly)..

The file has many comments explaining each step, we recommend examining Module1.vb source file before executing the compiled program. In a nutshell, the sample will search for an account (if it doesn’t find it, it will create new one), and then demonstrates adding/searching for a ticket and adding/listing charges.

To use the library in your own project you’ll have to reference the CRMLib.dll (the DLL will be created after compiling the source code).

Back to RangerMSP VB.NET API Page