License Manager Command Line

Posted by: thorsten.lueck on 25 March 2022, 5:29 am EST

  • Posted 25 March 2022, 5:29 am EST

    Hi,

    in an automated VS2019 / C# build, I did not get an error although the activereport license was deactivated. Is there a way to check via command line, whether a valid license is available during the build to generate an error otherwise?

    Thx

    Thorsten

  • Posted 28 March 2022, 4:56 am EST

    Hello,

    For ActiveReports 16, you can use the below-specified command line to check the activation status:

    
    cmd /c "C:\ProgramData\GrapeCity\gclm\gclm.exe "5e0b5f44-1a6b-4aff-a007-17b9224bca83" > info.txt"
    
    

    Hope it helps.

    Regards

    Dushyant Sharma

  • Posted 28 March 2022, 9:45 am EST

    Hi,

    thanks for the info. Unfortunately we still stick to ActiveReports 13. Is there a similar command for AR13 available?

    Thx

    Thorsten

  • Posted 30 March 2022, 12:19 am EST

    Hello,

    Unfortunately, The license Manager for ActiveReports 13 does not support the given functionality to show the license activation status. However, as a workaround, we would suggest creating a console application and then running an instance of SectionReport enclosed within a try-catch block. Thus, If the machine is not licensed an error would be raised which can be handled within the catch block.

    We can then use the command line to build the project and then execute the build exe file to run the project as follows (consider the project name to Sample):

    
    msbuild Sample.sln
    cd bin/Debug
    Sample.exe
    
    

    Please find the sample application attached below.

    Sample_.zip

    Regards

    Dushyant Sharma

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels