1. Thierry Garrigues
  2. PowerBuilder
  3. Thursday, 9 January 2020 14:01 PM UTC

Hi.


I would like to scan documents to integrate them into my application as an image or PDF. How can I do this with PowerBuilder 2019?


What standards are compatible with the maximum of material?


Thank you


Thierry

Thierry Garrigues Accepted Answer Pending Moderation
  1. Friday, 10 January 2020 10:32 AM UTC
  2. PowerBuilder
  3. # 1

Hello
Do you have any examples or documentation?


There is a Window API: WIA is a COM interface. How to use it with PowerBuilder?

Regards

Thierry

Comment
  1. Michael Kramer
  2. Friday, 10 January 2020 11:49 AM UTC
You can access COM interfaces via PowerScript's OLEObject class. Every call is "dynamic" - i.e. binding happens at time of call at runtime. Hence you need to wrap OLEObject access in TRY-CATCH constructs to capture any issues.

Before you start writing to a specific Windows API you should verify that the scanner you will use actually supports this API.
  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 9 January 2020 16:48 PM UTC
  2. PowerBuilder
  3. # 2

Hi

As Chris says, you use a 3rd party peice of software to perform the scan then read the resulting file (pdf) and store that in the database.

You could get the user to scan the file to a known folder and look in that folder for files and import them automatically. Lots of different ways to "skin the cat". All require a scanner and software to drive it.

Cheers

David

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 9 January 2020 16:44 PM UTC
  2. PowerBuilder
  3. # 3

Hi Thierry;

  FWIW: I have done this by calling the scanner directly from PB calling the manufacturers API DLL or calling a 3rd party product to perform this task on behalf of the PB App.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.