Click or drag to resize

CommenceApp Class

CmcLibNet is a .NET assembly that wraps the Commence API. The primary goal for developing this library was to make it easier to communicate with Commence from Powershell.
Inheritance Hierarchy
SystemObject
  Vovin.CmcLibNetCommenceApp

Namespace:  Vovin.CmcLibNet
Assembly:  Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntax
public class CommenceApp : ICommenceApp

The CommenceApp type exposes the following members.

Constructors
  NameDescription
Public methodCommenceApp
Constructor.
Top
Properties
  NameDescription
Public propertyExePath
Path to commence.exe.
Public propertyName
Name of currently open Commence database.
Public propertyPath
Path of currently open Commence database.
Public propertyRegisteredUser
Registered user of current Commence database.
Public propertyVersion
Version of active Commence application.
Public propertyVersionExt
Extended version of active Commence application.
Top
Methods
  NameDescription
Public methodClose
Close any references to Commence. Objects implementing this interface should be disposed after this. Important: object derived from this interface will also have their COM-references closed.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

COM clients can use it by calling it with ProgId 'CmcLibNet.CommenceApp'.

COM applications such as Commence Item Detail Form scripts that use so-called 'late binding' can call the assembly thus:

VBscript:

VBScript
Dim obj : Set obj = CreateObject("CmcLibNet.CommenceApp")

When used from Commence Item Detail Forms or Office VBA, be sure to read this: Close.

See Also