Home » Developer & Programmer » Forms » scan image from oracle forms 10g (forms10.1.2.0.2/windows xp)
scan image from oracle forms 10g [message #352021] Sun, 05 October 2008 05:28 Go to next message
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 Sad

Thanks
Re: scan image from oracle forms 10g [message #352034 is a reply to message #352021] Sun, 05 October 2008 07:58 Go to previous messageGo to next message
marwa.m
Messages: 9
Registered: September 2008
Junior Member
pls can anyone help me

Re: scan image from oracle forms 10g [message #352036 is a reply to message #352034] Sun, 05 October 2008 08:35 Go to previous messageGo to next message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

what version of forms and database are you using?
What are you trying to achieve by doing this?
Re: scan image from oracle forms 10g [message #352044 is a reply to message #352036] Sun, 05 October 2008 09:15 Go to previous messageGo to next message
marwa.m
Messages: 9
Registered: September 2008
Junior Member
thanks for your replay


my forms version is: 10.1.2.0.2
my database version is :10.2.0

i put this code on (when_button_pressed)to scan image through my form

Re: scan image from oracle forms 10g [message #352096 is a reply to message #352044] Mon, 06 October 2008 01:45 Go to previous messageGo to next message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

Quote:
i tried to use this code to scan from oracle forms 10g


what do you mean by scan from oracle 10g?? what are you trying to scan? are you using a scanner?
Re: scan image from oracle forms 10g [message #352271 is a reply to message #352096] Mon, 06 October 2008 22:56 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT 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

Previous Topic: use of collections in forms developer
Next Topic: INSERTION using sequence
Goto Forum:
  


Current Time: Thu Dec 08 06:12:40 CST 2016

Total time taken to generate the page: 0.06508 seconds