To invoke an IFS (Intelligent Financial Systems) package in C#, you can use COM interop to access the package's objects and methods. Here's an example of how to import the package's type library and use a method from the package:
main.cs309 chars13 lines
This code imports the IFS.Archive
namespace, which contains the Archive
class from the package. Then it creates an instance of the Archive
class and calls the Login
method, passing in a username and password.
Note that you may need to register the package first using the regsvr32
command in the command prompt. Additionally, you'll need to add a reference to the package's DLL file in your project in order to import the type library.
gistlibby LogSnag