Home » Developer & Programmer » Forms » scanner with OCX (Forms 6i)
scanner with OCX [message #406903] Sun, 07 June 2009 06:54 Go to next message
alijeyan
Messages: 180
Registered: January 2007
Location: IRAN
Senior Member
Hi All
Can I have any code example for the calls to the library programs?
I need open the scanner and save the returned image (jpeg) into filesystem directory. Then I will save it in a BLOB column.
Thank you in advance and sorry by my English.

Ali
Re: scanner with OCX [message #406923 is a reply to message #406903] Sun, 07 June 2009 11:33 Go to previous message
owais_baba
Messages: 289
Registered: March 2008
Location: MUSCAT
Senior Member
try this

Place an OCX item into the canvas
and right click on it using the mouse and select insert
object from the list of controls select kodak image scan control and click ok,
( if this control is not available, pls make sure that
you have installed Imaging for windows )

you will see that the ocx item has changed to
scanner like button

now click on program in the menu bar and select
import ole library interface
list of ole classes will be displayed from that select
Imaging.ScanCtrl.1 or Imaging.Scanctrl
and below that you can find the methods and events listed select all and click ok

now go to the object navigator and you can see some
package, procedure and function would have been created
in the program units directory.

Call those program, passing the required parameters
and scanning works well.

owais

[EDITED by LF: removed superfluous empty lines]

[Updated on: Sun, 07 June 2009 13:13] by Moderator

Report message to a moderator

Previous Topic: Forms Code
Next Topic: two scroll bar for single database block
Goto Forum:
  


Current Time: Sun Dec 04 16:34:09 CST 2016

Total time taken to generate the page: 0.14716 seconds