Posted 10 July 2023, 9:48 am EST
Hi,
We are using AR 17 for the desktop application my company builds.
The application is delivered to customers as 2 different executables:
*the first one (let’s call it BomReport.exe) uses the report designer to customize Bill of Material templates
*the second one (let’s call it MainApp.exe) lets the user preview generated reports in a dialog
All the code using ActiveReports components is placed in a shared class library, let’s call it CommonReports.dll.
I generated 2 different .gclix files, one for each executable (MainApp.CommonReports.dll and BomReport.CommonReports.dll), and added them to the Visual Studio project for CommonReports.dll as Embedded Resources.
At runtime only one of the executables actually works, the one which uses the report designer, BomReport.exe.
The other one shows a licensing error when opening the report preview dialog:
“License for ActiveReports 17 is not found. ViewerProgram execution is terminated.
This application will be terminated because it was built without a license for Viewer.”
The case of the executable that does not work(MainApp.exe) is trickier.
Our application is actually a complex plugin containing a mix of managed and unmanaged code for a base “platform” application made by our company.
So the call stack is something like this:
MainApp.exe → OurAppCode.dll → COM Wrapper class → CommonReports.dll → GrapeCity.ActiveReports.*.dll
MainApp.exe is not under my control, I only get access to an internal SDK and deliver OurAppCode.dll + CommonReports.dll + BomReport.exe.