I have been using the Sage100ERP.Reporting.dll to automate Crystal Reports and export data at a number of clients without issue. I am in the middle of an upgrade to version 2018, and my script is coming back with an error on this line:
Set report = CreateObject("Sage100ERP.Reporting.Repot")
The error says "The system cannot find the file specified."
I have registered the dll with an administrator cmd prompt using:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm "\\<Server>\<Share>\MAS90\Home\Sage100ERP.Reporting.dll" /codebase
I have verified the dll shows up in the registry.
I am running a .bat file that launches the .vbs file so it can be run in 32-bit mode from the 64-bit server. It has this code:
C:\Windows\SysWOW64\wscript <PathToSage>\MAS90\CM\Script\<ScriptName>.vbs
I have verified that other objects can be created such as "Scripting.FileSystemObject".
I have verified that it works on my computer also.
I cannot figure out what it is about this server environment that is making this dll not available.
Thanks.