pdfExport Licensing error

Posted by: sreejith.sreedharan on 3 June 2020, 6:02 am EST

    • Post Options:
    • Link

    Posted 3 June 2020, 6:02 am EST

    Hello - I created a new windows service project and created an AR report (I am using AR11). I am using pdfExport to generate the pdf file, but I am getting an “Licence for the pdfExport cannot be found”. I checked the licenses.licx file and there is a line for pdfExport. Am I missing something? What steps should I do to fix this issue? I have attached the license file I am using. Thank you.

  • Posted 3 June 2020, 7:22 am EST

    Hello,

    Add the following entry in the Licenses.licx file:

    GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf

    Thanks,

    Mohit

  • Posted 3 June 2020, 8:14 am EST

    Thanks Mohit. There is already a line in there. Should I still add this line? The line is GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf.v11, Version=11.0.8705.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff

  • Posted 3 June 2020, 8:28 am EST

    I added that line and I still get the same error.

  • Posted 3 June 2020, 9:08 am EST

    licenses.zip

    I have attached the licenses.zip. Please let me know what needs to change. I am stuck not knowing how to proceed. Thank you.

  • Posted 3 June 2020, 9:14 am EST

    Hello,

    There is no missing entry. Also, you can delete the duplicate from the licx file:

    GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf

    Could you please provide the stripped down sample so that I can replicate the issue at my end.

    Thanks,

    Mohit

  • Posted 3 June 2020, 9:22 am EST

    Imports GrapeCity.ActiveReports

    Imports GrapeCity.ActiveReports.Export.Pdf

    Imports GrapeCity.ActiveReports.Export.Pdf.Section

    Dim xPDF As New Section.PdfExport

    Dim rpt As New OrdersToProcessReport 'this is the AR report

    dim strSource as string

    rpt.DataSource = otpContents

    rpt.Run()

    strSource = String.Format(“{0}\OrdersToProcess_{1}.PDF”, Application.StartupPath.ToString(), branch)

    xPDF.Export(rpt.Document, strSource)

    Do let me know if you need anything more. Thank you.

  • Posted 3 June 2020, 9:27 am EST

    Hello,

    Could you please share the sample in which the issue occurs? I am unable to replicate the issue with a simple application. Also, please check that your machine is properly licensed or not.

    Thanks,

    Mohit

  • Posted 3 June 2020, 9:33 am EST

    Sure. Can you tell me how I can check if my machine is properly licensed or not?

  • Posted 3 June 2020, 9:38 am EST

    I opened up GrapeCity License Manager and it shows AR11 with Product Key and License Status = Professional License. That should mean it is properly licensed, correct?

  • Posted 5 June 2020, 3:39 pm EST

    Hello,

    Yes. Can you please share the stripped application with us so that I can reproduce the issue at our end. This will be very helpful for us to resolve the issue.

    Thanks,

    Mohit

  • Posted 7 June 2020, 6:45 am EST

    Hi Mohit - so I did some research and figured out the solution. The windows service has a main exe and a supporting dll which contains the report.

    #1, apparently they both need the license file registered, which I didn’t know earlier. I don’t know if AR automatically identifies it and registers them in both places, or if we should do so manually.

    #2, I noticed that the license file registered with the main exe was missing the pdfExport line. The license file I send to you was the one registered to the dll. Once I added that line in there, it worked without any issues.

    #3, we also need to verify that the version number indicated in the license files is the same as the one used in the project.

    Hope this helps somebody in the future. Thanks for your help Mohit.

  • Posted 8 June 2020, 3:13 am EST

    Hello,

    In AR11, as per my understanding, you don’t need licx file in the calling application. However, I am glad that your issue is resolved now. Please let me know, if you have any other queries.

    Thanks,

    Mohit

  • Posted 8 June 2020, 3:17 am EST

    Also, AR11 is a legacy product now. It is out of maintenance mode now. Hence, we do not provide support for the same or no bug fixing will be done in the same. I would recommend you use the latest version of ActiveReports i.e ActiveReports 14. Please refer to the following link for more information: https://www.grapecity.com/activereports.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels