License problem when TeeChart not referenced in main appli
Posted: Thu Dec 20, 2007 2:51 pm
Hi,
A few month ago we mentioned you a problem we add using TeeChart (version 3.2.2746.19160) in applications that does not reference it directly, but via intermediate dlls.
You answer us we can solve it using the patch TeeChartNET3PlugInLic.exe.
I tried it:
1- I installed the patch on my development machine.
2- I wrote a very simple dll (ClasseUsingATeeChartInDesignMode.dll)
which reference the TeeChart.dll, defines the following classn wher Form1 is a windows form on which I put a TeeChart in design mode.
public class ClassUsingTeeChart
{
private Form1 mForm;
public ClassUsingTeeChart()
{
mForm = new Form1();
}
public void ShowFormWithTeeChart()
{
mForm.Show();
}
}
3-I wrote a very simple application (MyApplication.exe) that references ClasseUsingATeeChartInDesignMode.dll (but no TeeChart.dll)
with the following program:
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form2());
}
}
Where Form2 is a simple Winfows form with a button to display Form1 and its TeeChart.
public partial class Form2 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
ClassUsingTeeChart classUsingTeeChart = new ClassUsingTeeChart();
classUsingTeeChart.ShowFormWithTeeChart();
}
}
When I try to execute my application on my development machine, I have no problem, but when I try it on a machine which has no teeChart installed, but only the TeeChart.dll in the same directory as the application one, I still have the following error:
“An instance of type SteemaTeeChart.Chart was being created and a valid licence could not be granted for the type Steema.TeeChart.Chart…”.
So do I forgot to do something ? or perhaps I don’have the good patch ?
Il would be pleased if you could help me…
Anne-Lise
A few month ago we mentioned you a problem we add using TeeChart (version 3.2.2746.19160) in applications that does not reference it directly, but via intermediate dlls.
You answer us we can solve it using the patch TeeChartNET3PlugInLic.exe.
I tried it:
1- I installed the patch on my development machine.
2- I wrote a very simple dll (ClasseUsingATeeChartInDesignMode.dll)
which reference the TeeChart.dll, defines the following classn wher Form1 is a windows form on which I put a TeeChart in design mode.
public class ClassUsingTeeChart
{
private Form1 mForm;
public ClassUsingTeeChart()
{
mForm = new Form1();
}
public void ShowFormWithTeeChart()
{
mForm.Show();
}
}
3-I wrote a very simple application (MyApplication.exe) that references ClasseUsingATeeChartInDesignMode.dll (but no TeeChart.dll)
with the following program:
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form2());
}
}
Where Form2 is a simple Winfows form with a button to display Form1 and its TeeChart.
public partial class Form2 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
ClassUsingTeeChart classUsingTeeChart = new ClassUsingTeeChart();
classUsingTeeChart.ShowFormWithTeeChart();
}
}
When I try to execute my application on my development machine, I have no problem, but when I try it on a machine which has no teeChart installed, but only the TeeChart.dll in the same directory as the application one, I still have the following error:
“An instance of type SteemaTeeChart.Chart was being created and a valid licence could not be granted for the type Steema.TeeChart.Chart…”.
So do I forgot to do something ? or perhaps I don’have the good patch ?
Il would be pleased if you could help me…
Anne-Lise