scan image from oracle forms 10g [message #352021] |
Sun, 05 October 2008 05:28 |
marwa.m
Messages: 9 Registered: September 2008
|
Junior Member |
|
|
please i need help
i tried to use this code to scan from oracle forms 10g
and i had this error (ora-305500)
please tell me if i'm right or not
this is my code
DECLARE
-- Declare the OLE objects
MyApplication OLE2.OBJ_TYPE;
Myimages OLE2.OBJ_TYPE;
Myimage OLE2.OBJ_TYPE;
MySelection OLE2.OBJ_TYPE;
-- Declare handle to the OLE argument list
args OLE2.LIST_TYPE;
BEGIN
MyApplication := OLE2.CREATE_OBJ('ABAConversionUtility');
Myimages:= OLE2.GET_OBJ_PROPERTY(MyApplication, 'image');
Myimage := OLE2.INVOKE_OBJ(Myimages, 'Scan');
--(specify the item which i will scan on)
MySelection:=OLE2.GET_OBJ_PROPERTY(MyApplication,':block3.imge5');
--(specify the name of the scanner)
OLE2.SET_PROPERTY(MySelection,'Scan','abaarchivallib.abaarchivallibcontol');
--(save my image into this path)
OLE2.ADD_ARG(args, 'f:\image.jpg');
OLE2.INVOKE(Myimage, 'SaveAs', args);
OLE2.DESTROY_ARGLIST(args);
--OLE2.INVOKE(Myimage, 'Close');
-- Release the OLE objects
OLE2.RELEASE_OBJ(MySelection);
OLE2.RELEASE_OBJ(Myimage);
OLE2.RELEASE_OBJ(Myimages);
OLE2.RELEASE_OBJ(MyApplication);
END;
plese help becuse i searched everywhere to scan image from oracle 10g
and i got nothing
Thanks
|
|
|
|
|
|
|
Re: scan image from oracle forms 10g [message #352271 is a reply to message #352096] |
Mon, 06 October 2008 22:56 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
What is the message associated with 'ora-305500'? Is this a new form or a conversation from an earlier version? Should you be using 'client_ole2' instead of 'ole2'?
David
|
|
|