Uniface on GitHub
Fixes and Updates
Author: email@example.com (parcaya)
Anyone have any code examples of how scan a document from a "FORM" in Uniface?.
parcaya said Anyone have any code examples of how scan a document from a "FORM" in Uniface?.
What do you mean with document and FORM ? If you want to scan the proccode inside a UnifAce component, there are four possibillities
you can export all the form you wish to scan using : Lets say you load all the names of the forms to entity DUMMY1,field form_to_exp and use entity DUMMY field exp_path for path information type the path to exp_path.dummy Than loop the entity occ , and use $ude proc code $98 = "%%exp_path.dummy%%%\%%form_to_exp.dummy1%%%.xml" $95 = form_to_exp.dummy1 $1 = $ude("export", "component", $95, $98,"append=False")
Hello, I'm understanding your question a bit differently than the previous posters. If you would like to scan (e.g.) a paper document using a flatbed scanner then you would need an external program that can do this for you. The end result (e.g. image or PDF document) could of course be processed by Uniface (in one way or another). One option to embed a scanner program could be the Uniface OCX container. This, however, requires that there is a vendor that provides an OCX or ActiveX control that could be used for this task. I'm not sure if something like that already exists. Maybe another forum member has some experience with this. Alternatively you also could scan the document with an external program first and then "import" the scanned document (e.g. image or PDF document) into Uniface. Hope this helps. Kind regards, Daniel
We currently do this using a program called Quickscan, but it's a bit out of date and we are searching for another one. It has a command line option which we run from within UNiface, which scans documents to a folder, we then use $ldir etc to process all the files in the folder and remove them. I have requested on this forum before whether any users have a TWAIN signature or dll that works with Uniface, but there have been no answers. regards, Iain
We have integrated TWAIN scanning into our own dll. There are tools which you can use and then you need to implement just an "interface" to call this from Uniface. We use just a few operations: Twain Get Sources, Twain Source Capabilities and Twain Acquire Image. Results are saved to file(s) and then loaded into Uniface. Zdeněk
sochaz said We have integrated TWAIN scanning into our own dll. There are tools which you can use and then you need to implement just an "interface" to call this from Uniface. We use just a few operations: Twain Get Sources, Twain Source Capabilities and Twain Acquire Image. Results are saved to file(s) and then loaded into Uniface. Zdeněk
Hi, It will be possible to send me a copy of that interface. Thanks
© 2021 Uniface Privacy & Cookies | Privacy Statement | Legal