Failed to create custom field 'C1.C1Report.CustomFields.QRCode'

Posted by: trevor.white on 27 October 2017, 7:51 am EST

    • Post Options:
    • Link

    Posted 27 October 2017, 7:51 am EST

    We are experiencing an issue implementing a QR field. Currently running this in the C1Reports Designer works as intended just fine, although running this report in our application we generate this error…

    Failed to create custom field 'C1.C1Report.CustomFields.QRCode' from assembly 'c1.c1report.customfields.4'.
    Please make sure the assembly and its dependencies are available.
    

    I have tried referencing all of these libraries to no availability…

    • “C1.C1Report.CustomFields.4”
    • 4.0.20163.226
    • “C1.C1Report.4”
      • 4.0.20163.226
    • “C1.Win.C1BarCode.4”
      • 4.0.20163.226
    • “C1.Win.C1Report.4”
      • 4.0.20163.226

    The version of C1Report Designer is: 4.0.20161.139

    Is there any examples using the QR code in reports I can take a look at and or has this issue been reported before and is there a resolution?

    Thank You!

  • Posted 28 October 2017, 2:29 am EST

    Hi,

    Please note that while loading a Report containing CustomFields like Chart, Barcodes, QR Codes etc., it is necessary to add assembly

    (eg.C1.Win.C1BarCode.4.dll, C1.Win.C1Chart.4.dll) corresponding to that custom field. Also, it is necessary to add “C1.C1Report.CustomFields.4.dll” assembly in your project while using any custom field control.

    Please refer to 'Tip 6 ’ in following documentation link for more information:

    http://helpcentral.componentone.com/nethelp/c1report/c1reporttips.html

    Since you have used the necessary dlls, make sure that:

    1. All the C1 assemblies referenced in the project correspond to the same version and build. We suggest you to use latest build of C1Report which can be downloaded from following link:

      http://prerelease.componentone.com/dotnet20/c1winforms/2017-t2/C1WinForms.2_2.0.20172.271.zip

      http://prerelease.componentone.com/dotnet40/c1winforms/2017-t2/C1WinForms.4_4.0.20172.271.zip

    2. The Target Framework of your application should be set to full framework 4.0 rather than the client profile.

    Now, Rebuild your solution. This issue should be resolved.

    Please refer the attached sample where a report containing a QRCode works well.

    Regards,

    Esha

    prj_C1Report_QRCode.zip

  • Posted 31 October 2017, 11:02 am EST

    Esha,

    Thank you for the reply! I finally figured out the issue. We have multiple projects under our solution, the calling library that creates our window for the viewer did not have the reference to C1.C1Report.CustomFields.4.dll. Our reports are generated from a different assembly, the calling assembly is what creates the window and the other assembly generates the reports.

    Is there a reason as to why I would have to add the C1.C1Report.CustomFields.4.dll to the assembly that is not creating the report?

    All other libraries are referenced in our other assembly that creates our reports, but that library had to be put in the calling library.

    Thank You!

  • Posted 1 November 2017, 6:42 am EST

    Hi,

    Please note, C1Report loads the C1.C1Report.CustomFields.4.dll assembly at runtime if it found any field related to C1.C1Report.CustomFields.4.dll assembly in C1Report at the time of loading.

    That’s why this must be referenced in the main project where you want to call an assembly which loads a report with the custom field(s).

    Hope, it clarifies for you.

    Thanks,

    Singh

  • Posted 3 November 2017, 2:12 pm EST

    Thank you sonu, makes sense!

Need extra support?

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

Learn More

Forum Channels