Hello Freinds,
I want to add Employee Roles using EmployeeRolesInfo object which is in Membership tab of Employee form.
Anyone suggest me how can I do this.
I declare
SAPbobsCOM.EmployeeRolesInfo emp;
emp = (SAPbobsCOM.EmployeeRolesInfo).oCompany.GetBusinessObjectSAPbobsCOM.BoObjectTypes.oEmployeesInfo);
but this line give me error
Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.EmployeeRolesInfo'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3D698BD3-DA75-4CC7-97A9-AE151B6ADE3F}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). - 01/12/2009 11:56:22
Please help me to solved the this problem.
Thanks in Advance.
Swati