Sage offers an ODBC driver to connect to their proprietary databases. Here we talk about using the supplied ActiveX performing advanced functions in a .Net C# application.
A connection to the ODBC data source must be made prior to using the advanced functions provided by the ActiveX.
Using the ActiveX DLL in C#
An assembly of the ActiveX dll must be created before it can be used in a .Net program.
After installing the Sage Ligne 100 ODBC Kit and the .Net 1.1 SDK, use the library converter:
cd "C:\Program Files\Microsoft.NET\SDK\v1.1\Bin"
tlbimp %WINDIR%\system32\ASD100.dll /out:%WINDIR%\system32\ASD100lib.dll
Test the newly created assembly with:
Ildasm %WINDIR%\system32\ASD100Lib.dll
The library can then be added to the C# project as a normal assembly. See the links below for details.
Partager