Solved

WANG IMAGE EDIT CONTROL

Posted on 1998-12-29
3
481 Views
Last Modified: 2013-12-25
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.

0
Comment
Question by:iqbalj
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
tward earned 60 total points
ID: 1489285
These are the ONLY filetypes that Wang/Kodak Image Edit can save as:

FileType Setting      Default PageType Setting
1 -- TIFF      PageType setting of the displayed image
2 -- AWD (Windows 98 only)      1 -- Black-and-white
3 -- BMP      PageType setting of the displayed image

the JPEG that you see in the documentation means TIFF with JPEG Compression.
0
 

Author Comment

by:iqbalj
ID: 1489286
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 ?
0
 
LVL 7

Expert Comment

by:tward
ID: 1489287
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.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question