How to get rid of evaluation popup message for C1Report

Posted by: maschaefer on 10 September 2017, 11:34 am EST

  • Posted 10 September 2017, 11:34 am EST

    I cannot get rid of the evaluation popup box when my code executes the following:



     



     


    Dim subrptweb1 As New  C1.C1Report.C1Report


    I normally get rid of the popup messages by dragging the control onto a web form, thus adding the token to the licenses.licx file.


     


    How do I do this for the C1.C1Report dll? As far as I can tell, there is no control that I can drag onto a web form.


    Thanks,


    Mary Ann


  • Replied 10 September 2017, 11:34 am EST

    Hello Mary Ann,


    Add the following to the licenses.licx:


      C1.C1Preview.C1PrintDocument, C1.C1Report.2


      C1.C1Report.C1Report, C1.C1Report.2


    After this, rebuild and run the web app.


    Also, this is the necessary information; the PublicKeyToken, Culture, and Version are all optional.


    Regards,


    -Raleigh

  • Replied 10 September 2017, 11:34 am EST

    The nag screen pops up because C1Report has a separate license from the C1ReportViewer. In order to use C1ReportViewer's license to create a licensed instance of C1Report, use CreateC1Report() method on the viewer:


    C1.C1Report.C1Report rep = viewer.CreateC1Report();


    where "viewer" is an instance of C1.Web.UI.Controls.C1Report.C1ReportViewer. (There's also a method to create a licensed instance of C1PrintDocument - CreateC1PrintDocument.)


    Hope this helps.

Need extra support?

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

Learn More

Forum Channels