Home » Developer & Programmer » Forms » Problem under 6i with OLE2, ocx for MODI, and multi-page tifs...
Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #154109] Thu, 05 January 2006 14:24 Go to next message
rebuch
Messages: 2
Registered: January 2006
Junior Member
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.
Re: Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #154137 is a reply to message #154109] Thu, 05 January 2006 20:29 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have a look at http://www.orafaq.com/forum/m/124560/67467/?srch=OLE2.OBJ_TYPE#msg_124560

David
Re: Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #154273 is a reply to message #154137] Fri, 06 January 2006 09:43 Go to previous messageGo to next message
rebuch
Messages: 2
Registered: January 2006
Junior Member
I tried switching out OLE2.INVOKE_OBJ with OLE2.GET_OBJ_PROPERTY and still get the error

FRM-40735: WHEN-MOUSE-CLICK trigger raised unhandled exception ORA-305500.

I might be missing something simple because I pretty much know just enough to be dangerous. Again any help would be great...

DECLARE
MyApplication OLE2.OBJ_TYPE;
MyApplication1 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('MiDocViewer.MiDocView.1');
--MyApplication1 := FORMS_OLE.get_interface_pointer('block3.item41');
ole2.set_property(MyApplication,'Visible',1);
MyDocuments := ole2.get_obj_property(MyApplication,'MyDocuments');
args := ole2.create_arglist;
ole2.add_arg(args,'c:\E4660399.tif');
--ole2.add_arg(args,0);
Mydocument := OLE2.GET_OBJ_PROPERTY(MyDocuments,'Open',args);
--OLE2.set_property(MyApplication1,'SRC',args);
ole2.destroy_arglist(args);
END;
icon5.gif  Re: Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #414523 is a reply to message #154273] Wed, 22 July 2009 07:39 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
Hi every body,
I want to scan picture and save it in data base,there is an "OLE Container" in my form that by right click on it appears popup menu and let me "insert object" => "Image Document" => "select Printer" => "scan".
now i want do those silently by pressing a button.But i have 2 problem
1 ) How can i call "insert object","Image Document" with triggers?
2 ) How can i silent it?

Thanks a lot for your assist.

icon5.gif  Re: Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #414619 is a reply to message #154273] Thu, 23 July 2009 00:25 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
Hi,Dears....

I found a javabeans for scan pictures but i don`t know how use it with form 6i ! please help me to use javabeans ....
Thanks in advance.

[Updated on: Thu, 23 July 2009 05:06]

Report message to a moderator

icon9.gif  Re: Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #414716 is a reply to message #414619] Thu, 23 July 2009 05:10 Go to previous messageGo to next message
saeid
Messages: 22
Registered: May 2008
Junior Member
I am forgotten ..???

Why dont answer me any body? Sad
Re: Problem under 6i with OLE2, ocx for MODI, and multi-page tifs... [message #414866 is a reply to message #414716] Thu, 23 July 2009 20:37 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please wait more than 24 hours before 'poking' your question.

Search this forum for 'blob' and 'image'. There are many threads dealing with saving an image in a database.

David
Previous Topic: Need to change the printer setting margin on paper size
Next Topic: how to store form modules into database
Goto Forum:
  


Current Time: Fri Sep 20 09:50:00 CDT 2024