Com connector status

Sometimes we need to check the status of the Axapta com connector .his code will help u to find out the status of the Axapta COM Connector.

static void comconnector_status(Args _args) {   COM axCom; str res; boolean error = false; ;   try {       axCom = new COM('AxaptaComConnector.Axapta2'); info("COMConnector- success"); }   catch (Exception::Error) {       error = true; }   catch (Exception::Internal) {       error = true; }

if (error) {       res += 'Business Connector could not be created\n'; res += 'Make sure that AXCOM.DLL is installed on computer and register in COM+\n'; }

}

regards SREENATH REDDY G