Using Visual Components in Different Versions of Visual Studio

You can find main peculiarities of Visual Components usage in different Visual Studio versions below.

In Microsoft Visual Studio 2010

You may receive an error message while adding ABBYY FineReader Engine Visual Components to a Visual Studio 2010 project. This is known behavior described in As a workaround you can either use .NET Framework 3.5 for development or install COM Interop assemblies for Visual Components manually.

To install Interop assemblies manually, do the following:

  1. The Interop assemblies for .NET Framework 4.0 are located in the Inc\.Net interops\v4.0 folder. Register Interop.FREngine.dll and Interop.FineReaderVisualComponents.dll:
[WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FREngine.dll /registered /codebase
    [WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FineReaderVisualComponents.dll /registered /codebase
  1. Install the Interop assemblies to GAC:
[ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /if [path-to-the-interop-assemblies]\Interop.FREngine.dll
    [ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /if [path-to-the-interop-assemblies]\Interop.FineReaderVisualComponents.dll

Note: This method is suitable only for projects which use .NET Framework 4.0. If you register these assemblies and try to develop with earlier .NET Framework version, it will not work. To work with earlier versions, deinstall and unregister Interop assemblies as follows:

  1. Deinstall both Interop assemblies:
[ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /u Interop.FREngine
[ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /u Interop.FineReaderVisualComponents
  1. Unregister the Interop assemblies:
[WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FREngine.dll /u
[WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FineReaderVisualComponents.dll /u

See also

Visual Components Reference

Creating an Application with a Graphical User Interface

03.07.2024 8:50:43

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.