Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

WANG IMAGE EDIT CONTROL

Posted on 1998-12-29
3
Medium Priority
?
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
tward earned 120 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses

604 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