Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 Redistributable License
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tomaso

16 Posts

Posted - 11 Sep 2007 :  10:11:47  Show Profile  Reply with Quote
I have embedding the QCLicense.lic.xml License File as a Resource
in my .net project (windows form) but isn't recognized

Here the code source that I have used:

Sub InitializeChart()

ChartView.SetLicensePath("GFMonchieri")

Dim cvGrafico As ChartView
cvGrafico = Me
...

Where "GFMonchieri" is the Assembly Name
Where I have wrong?

quinncurtis

1164 Posts

Posted - 11 Sep 2007 :  12:26:15  Show Profile  Reply with Quote
Did you set the Build Action property of the license file in the project to Embedded Resource, as described in the manual.
Go to Top of Page

Tomaso

16 Posts

Posted - 11 Sep 2007 :  13:22:16  Show Profile  Reply with Quote
Yes,
I have set the "Build Action" ("Operazione di Generazione" in the Italian language) property to "Embedded Resource" ("Risorsa incorporata" in the Italian language)

If I copy the QCLicense.lic.xml file in the windows\system32 folder the application run correctly


Go to Top of Page

quinncurtis

1164 Posts

Posted - 11 Sep 2007 :  14:00:57  Show Profile  Reply with Quote
Make sure you are calling the ChartView.SetLicensePath in the main Form of the program, as done in our example program LinePlotSalesVolume. It must be called BEFORE the ChartView derived class is instantiated, which in this case is done in the InitializeComponent call.

Public Sub New()
        MyBase.New()

        ChartView.SetLicensePath("LinePlotSalesVolume")
        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

End Sub

And that your project is generating an application program, not some sort of control. If the LinePlotSalesVolume example program works, but yours doesn't, you need to study the differences between the two programs.

If these hints don't help you will need to send us the complete source to the simplest possible version of your project that reproduces the problem, as a zip file, so that we can compile and run it in our offices. Send it to support@quinn-curtis.com. Include your company information and when you purchased the software in the e-mail.

Go to Top of Page

Tomaso

16 Posts

Posted - 12 Sep 2007 :  02:24:53  Show Profile  Reply with Quote
Ok!
I have inserted the ChartView.SetLicensePath setting in the main form and now works correctly!

Thanks also for the rapidity of the answers
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07