Problem under 6i with OLE2, ocx for MODI, and multi-page tifs...
Under Oracle 6i I'm tring to to use the ocx for the Microsoft Document Image Viewer to open a multi-page tif within a form. I have the following code attached to a trigger and receive a "ORA-305500" error when I try to activate the trigger.
DECLARE
MyApplication OLE2.OBJ_TYPE;
MyDocuments OLE2.OBJ_TYPE;
MyDocument OLE2.OBJ_TYPE;
MySelection OLE2.OBJ_TYPE;
obj_hnd OLE2.OBJ_TYPE;
args ole2.list_type;
BEGIN
MyApplication := ole2.create_obj('MSPaper.Document');
ole2.set_property(MyApplication,'Visible',1);
MyDocuments := ole2.get_obj_property(MyApplication,'Documents');
args := ole2.create_arglist;
ole2.add_arg(args,'c:\E4660399.tif');
ole2.add_arg(args,0);
Mydocument := ole2.invoke_OBJ(MyDocuments,'Open',args);
ole2.destroy_arglist(args);
END;
Any help would be great, thanks.