Link to home
Start Free TrialLog in
Avatar of iqbalj
iqbalj

asked on

WANG IMAGE EDIT CONTROL

Hi,
I am using this control (WANG IMAGE EDIT CONTROL) and WANG SCAN CONTROL in ORACLE FORMS just to save the scanned image in the file.

This follwing procedure is supposed to save the displayed image in a file. But somehow
I'm not able to pass right parameters to it. The first two parameters doesn't give me any
error.



PROCEDURE SaveAs(interface OleObj, Image VARCHAR2, FileType OleVar := OleVar_Null,
      PageType OleVar := OleVar_Null, CompressionType OleVar := OleVar_Null, CompressionInfo OleVar := OleVar_Null,
      SaveAtZoom OleVar := OleVar_Null);

If I do this :

WANGIMG_EDIT.SaveAs(hint, 'C:\TEMP\XXX.TIF');

(hint is the edit control)

It works fine and saves the image as TIFF format, but I need JPEG. So I try to pass
FileType, and CompressionType parameters which are integers. I get error message that
I'm passing 'wrong number or type of arguments'.

Thanks in Advance.

J.

ASKER CERTIFIED SOLUTION
Avatar of tward
tward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of iqbalj
iqbalj

ASKER

Thanks !!

Could you refer me some other control/OCX;  which I can use with ORACLE FORMS to
scan and save the image in jpg format; because ORACLE FORMS built in function
(READ_IMAGE_FILE) is not able to read the *.tif file saved by the wang edit control.

Do u have any other suggestions ?
Lead Tools is one that comes to mind, but I think if you want to do GIF or JPEG you need a license from UNISYS.