How to liecese spread for winform 5.0 in C++

Posted by: kukemaster on 8 September 2017, 2:59 pm EST

  • Posted 8 September 2017, 2:59 pm EST

    I have tow projects, ProjectA use C# ,in this project include a control that contain a Spread named spStudent, ProjectA build as ProjectA.dll

     Now, I have an other project named ProjectB that use C++, I want to use spStudent ProjectB, but how can I add license to ProjectB.

  • Replied 8 September 2017, 2:59 pm EST


    There isn't a way to make it work to build the ProjectB without the development license for Spread installed.  You can make that ProjectB deployable on machines that do not have the Spread development license, but you must either build your control in ProjectA to implement licensing (i.e. use LicenseProvider attribute to make it a licensed control) and include that license in the build of ProjectB, or you must include the Spread run time license in the build (i.e. add Spread's type to the .licx built into ProjectB explicitly).  For more information and details, please refer to my blog post on licensing and inheriting controls:

    <h4 class="CommonSearchResultName" style="font-size:20px;font-weight:normal;font-family:Tahoma, Arial, Helvetica;padding:4px 4px 4px 0px;margin:0px;text-align:left;">Licensing of .NET Components</h4>


  • Replied 8 September 2017, 2:59 pm EST


    As usually, ProjectA and ProjectB need to add licenses.licx,  Is there a way add license to ProjectB at run time by coding, rather than by add licenses.licx to ProjectB.

  • Replied 8 September 2017, 2:59 pm EST


    Either you may follow Sean's suggestion or you may keep a dummy form with Spread designed on it so that you will have license entry in licenses.licx file always and you can use Spread anywhere in your project but that form.



Need extra support?

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

Learn More

Forum Channels