The first step in deploying your application is to package the required ImageGear Runtime components.
ImageGear provides two different options to package the required files:
Office
If your application requires Office, you will also need to package the OfficeCore dependencies.
In order to use ImageGear.Formats.Office namespace, two conditions must be met:
- OfficeCore dependencies need to be present on the target machine.
- ImageGear needs to know the location of OfficeCore.
There are several possibilities to set up the OfficeCore resources correctly:
- use the OfficeCore initialization API by setting the directory with OfficeCore dependencies in the ImGearOffice.Initialize(String) function.
- move the OfficeCore dependencies into the same directory as the ImageGear.Formats.Office.dll (Bin folder by default).
- set the registry HKEY_LOCAL_MACHINE\SOFTWARE\Accusoft\ImageGear\dotNet24\OfficeCoreDir string value to point to the OfficeCore dependencies directory.
If you want to run the 32-bit IG.NET application on the 64-bit machine, then you need to change the registry path to the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Accusoft\ImageGear\dotNet24\OfficeCoreDir.
The OfficeCore dependencies directory should contain following components:
It is required that every component should have the same bitness as ImageGear.Formats.Office.dll (i.e., use 32-bit component executables for the x86 .NET target and 64-bit for the x64 .NET target).