Solved

WANG IMAGE EDIT CONTROL

Posted on 1998-12-29
3
473 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now