Cannot create instance of C1Report.CustomFields.SuperLabel in C# code

Posted by: erica_li on 15 October 2021, 6:33 pm EST

    • Post Options:
    • Link

    Posted 15 October 2021, 6:33 pm EST

    Exception was thrown when creating a new instance:

    var superLabel = new C1.C1Report.CustomFields.SuperLabel()

    Errors:

    Cannot create instance of type C1.Win.C1SuperTooltip.C1SuperLabel, error was:

    Cannot load assembly C1.Win.C1SuperTooltip.4.

    Make sure that assembly is available either in the application directory or in the GCA…

    I added all required assemblies to the project that I could think of including C1.C1Report.CustomFields.4.dll and C1.Win.C1SuperTooltip.4.dll and they are available in the bin folder at runtime.

    How can I get this resolved? I need to SuperLabel to display the html formatted text in the report.

    Many thanks!

  • Posted 18 October 2021, 6:42 am EST

    Hello,

    To use the custom fields in the C1Report, it is only required to add the additional C1.C1Report.CustomFields.4 DLL .

    If you are still facing with it then please share the following details so that we can assist you further:

    1: The version of controls that you are using.

    2: A stripped-down sample showing the issue.

    Regards,

    Prabhat Sharma.

  • Posted 18 October 2021, 12:02 pm EST

    As mentioned:

    “I added all required assemblies to the project that I could think of including C1.C1Report.CustomFields.4.dll and C1.Win.C1SuperTooltip.4.dll and they are available in the bin folder at runtime.”

    and an exception was thrown when creating a new instance:

    var superLabel = new C1.C1Report.CustomFields.SuperLabel()"

    I couldn’t even get any further. I was trying with 4.6.20131.54624.

  • Posted 19 October 2021, 7:30 am EST

    Hello,

    Although we do not have the exact version builds but we have checked with the 2013V1 builds and it is working fine at our end, please find the attached sample implementing the same.

    If you are doing anything else then please let us know and also share the builds that you are using.

    Regards,

    Prabhat Sharma.

    CustomFieldDemo.zip

  • Posted 26 October 2021, 12:58 am EST

    Sorry for not responding as I’ve been trying with FlexReport these days. I was able to create SuperLabel after resolved all errors encountered when generating a report.

    It’s all good now. Thanks!

Need extra support?

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

Learn More

Forum Channels