Hi,I'm using a COM object which has a method with 5 arguments, 3 of them being optional (below).---------------COM Object methodobjLibrary.CreateObject(ObjType, ClassIdent, [Option], [OptionEx1], [OptionEx2])Parameters:ObjType - idmObjectTypeClassIdent - Variant. Option - Optional. Variant. OptionEx1 - Optional. Variant. OptionEx2 - Optional. Variant. Not implemented.---------------My code:IDMObjects.Document objDoc;
objDoc = (IDMObjects.Document) (objLibrary.CreateObject(IDMObjects.idmObjectType.idmObjTypeDocument, objClsDesc, variant1, variant2, variant3));