1
votes

I've done numerous searching but can't find any examples of what I'm trying to do.

As per this MS article, Windows 10 has built in OCR using the Universal Windows Platform.

https://docs.microsoft.com/en-us/uwp/api/windows.media.ocr.ocrengine

Anyone know if this API can be called directly via VBA? (loads of examples of how to do so with Visual Studio but that's not what I'm after).

Any help would be much appreciated!

Thanks!

1
Did you check this example? - Vijay Nirmal
Thanks Vijay, yes I had a look however it refers to Visual Studio and I'm trying to do this excluively in VBA (if possible). - Stephen H
I don't know VB to help you. Maybe this post may help you. - Vijay Nirmal
Thanks again Vijay however that's using another SDK. I'm specifically interested in using the UWP as it's available on all Win 10 machines therefore makes the portability of anything referencing it robust. - Stephen H

1 Answers

0
votes

This article covers generally how to use UWP from existing desktop applications (including a VB6 example). Essentially, you have to use the Desktop Bridge to make functions that you can call from VB6. It doesn't look like that class has the DualApiPartition attribute which means that it will require a package identity.