Solved

WANG IMAGE EDIT CONTROL

Posted on 1998-12-29
3
479 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

864 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now