Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem under 6i with OLE2, ocx for MODI, and multi-page tifs...

480834Jan 5 2006
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2006
Added on Jan 5 2006
0 comments
229 views