Licensing ,net winform app for distribution

Posted by: arunoday.choudhury on 15 September 2020, 2:55 am EST

  • Posted 15 September 2020, 2:55 am EST

    I have a dev license and i am the only one who works on Active Reports v14. We have a .Net assembly which refers to all the grapecity dlls and i compile it on my machine. The application uses this dll to generate reports.

    How do i license the application?

    Thanks

    Arun

  • Posted 16 September 2020, 4:42 am EST

    Hello,

    Please follow the following steps to license your application

    1: Run cmd as administrator

    2:Switch to C:\ProgramData\GrapeCity\gclm folder

    3: Enter the following: gclm.exe “de456e2c-d2e3-4246-94e8-9648bbd6fbf0” -lc ./.gclicx [entry application name].[assemblyname].dll"

    4: Check that .gclicx file is generated in C:\ProgramData\GrapeCity\gclm folder.

    5: Open the project in which AR assemblies is used

    6: Add .gclicx file to the above project and make it embedded.

    7: Fix references, build and run MainExeceutable project

    Hope it helps.

    Thanks,

    Mohit

  • Posted 6 October 2020, 4:34 pm EST

    Mohit Many Thanks for your response. The licensing seems like it might be working but I will have to test it out on a different client machine.

    I am now facing another issue. On Export to pdf I am getting this exception thrown and I have no clue why it is trying to refer v3.1.0.519.

    We have the following code and it is working with v12 of AR. But when I upgraded to v14, the export throws the following error. Can you please help?

    Unable to view requested report: . Error showing report viewer window. Unable to view requested report: Order - Summary/Item Detail. Could not load file or assembly ‘GrapeCity.Documents.Pdf, Version=3.1.0.519, Culture=neutral, PublicKeyToken=d55d733d2bfd5065’ or one of its dependencies. The system cannot find the file specified.

    Private Sub ExportReport()

        Const FILE_EXTENSION As String = "pdf"
        dlgSaveFile.Filter = "PDF Files (*.pdf)|*.pdf"
        Dim pr As New PageReport()
        Dim defaultPath As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments
    
        'Everyone should have a my documents directory. This is an attempt to fix
        'this for one guy who seems to not have it.
        If Not My.Computer.FileSystem.DirectoryExists(defaultPath) Then
            defaultPath = My.Computer.FileSystem.SpecialDirectories.Desktop
        End If
    
        dlgSaveFile.FileName = My.Computer.FileSystem.CombinePath(defaultPath, _
            m_sDefaultExportFileName.Trim & "." & FILE_EXTENSION)
    
        If dlgSaveFile.ShowDialog() = Windows.Forms.DialogResult.OK Then
            PdfExport2.Export(repViewer.Document, dlgSaveFile.FileName)
           
        End If
    
    End Sub
    
  • Posted 7 October 2020, 3:28 am EST

    Hello,

    Could you please check the issue with the latest hotfix:

    http://cdn.grapecity.com/ActiveReports/AR14/Hotfixes/ActiveReports-v14.2.20540.msi

    Thanks,

    Mohit

  • Posted 7 October 2020, 3:48 pm EST

    Thanks once again Mohit, the hotfix worked with the exception for export.

    Question -

    I have multiple applications(.exe(s)) which uses that one dll that has the .gclix embeded, but each time I have to run the gclm command for each of those applications to create a new .gclix file and then embed in to the dll project and recompile it. Is there a better way to do this which minimizes this task of recreating the .gclix for each application?

    Thanks with Regards

    Arun

  • Posted 8 October 2020, 5:49 am EST

    Hello,

    I have asked the development for the same and will inform you once I get any information from them.

    Thanks,

    Mohit

  • Posted 8 October 2020, 12:03 pm EST

    Hello,

    I have replied your query on the following SupportOne case:

    https://supportone.componentone.com/home/casedetail/466877

    You can login to SupportOne with same forum credential. Please reply to the SupportOne case only to avoid confusion.

    Thanks,

Need extra support?

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

Learn More

Forum Channels