Jump to content
Sign in to follow this  

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 {




void AddImage(

[in] BSTR imageFile,

[in] VARIANT_BOOL ignoreResolutionWarning);


void AddImages([in] VARIANT* safeArrayOfImageNames);


void CreateNewBatchWithOptions([in] BSTR imageFile);


void OpenRead([in] VARIANT* safeArrayOfImageNames);


void SetRecognitionLanguages([in] VARIANT* safeArrayOfLanguages);


void ForegroundMainFrame();


void ScanWithScanner([in] BSTR scannerName);



with the following code:


#include <Array.au3>

$friApp= ObjCreate("FineReader.Integration")

if IsObj($friApp ) Then

ConsoleWrite("OK frinteg")


ConsoleWrite("nOK frinteg")


Dim $varArray[1]

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



however it fails with internal error


may i guess it is because of incompatible array types?



Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.