Jump to content

abbyy authomation question


Recommended Posts

probably a newbie question:

how do i create a safearray of strings for com authomation?

i am trying to authomate the abbyy fine reader using the following interface:

-------------

dispinterface IFineReaderApplication {

properties:

methods:

[id(0x00000001)]

void AddImage(

[in] BSTR imageFile,

[in] VARIANT_BOOL ignoreResolutionWarning);

[id(0x00000002)]

void AddImages([in] VARIANT* safeArrayOfImageNames);

[id(0x00000003)]

void CreateNewBatchWithOptions([in] BSTR imageFile);

[id(0x00000004)]

void OpenRead([in] VARIANT* safeArrayOfImageNames);

[id(0x00000005)]

void SetRecognitionLanguages([in] VARIANT* safeArrayOfLanguages);

[id(0x00000006)]

void ForegroundMainFrame();

[id(0x00000007)]

void ScanWithScanner([in] BSTR scannerName);

};

-------------

with the following code:

-------------

#include <Array.au3>

$friApp= ObjCreate("FineReader.Integration")

if IsObj($friApp ) Then

ConsoleWrite("OK frinteg")

Else

ConsoleWrite("nOK frinteg")

EndIf

Dim $varArray[1]

$varArray = _ArrayCreate("R:\\z_temp\\u1.pdf")

$friApp.ConvertToPdf($varArray)

-------------

however it fails with internal error

post-49581-1243352019_thumb.jpg

may i guess it is because of incompatible array types?

regards

Dima

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...