custom AxisLabels overlap
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
You'll find an example at TeeChart's features demo, at the TeeChart program group. The example is "All Features\Welcome!\Axes\Labels\Custom Labels".
You'll find an example at TeeChart's features demo, at the TeeChart program group. The example is "All Features\Welcome!\Axes\Labels\Custom Labels".
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
Well the feature demo does not work on my system. I get an error ( I will give the details later). For the last version I downloaded the update only, but I think it did not work before that as well.
What do I do to get that fixed.
I searched the forum for the error message, but did not find anything.
Here goes the error message:
System.IO.FileLoadException: Die Manifestdefinition 'TeeChart' der Assembly stimmt nicht mit dem Assemblyverweis überein.
Dateiname: TeeChart
at Steema.TeeChart.Samples.MainForm.ShowForm(TreeView tree)
at Steema.TeeChart.Samples.MainForm.treeView1_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = TeeChart, Version=1.1.1675.27998, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
(Fully-specified)
LOG: Appbase = F:\Programme\Steema Software\TeeChart for .NET v1\Examples\DemoProject\bin\ExecutableDemo\
LOG: Initial PrivatePath = NULL
Calling assembly : TeeChartNetExamples, Version=2.0.1675.28004, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from F:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: TeeChart, Version=1.1.1675.27998, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
LOG: Attempting download of new URL file:///F:/Programme/Steema Software/TeeChart for .NET v1/Examples/DemoProject/bin/ExecutableDemo/TeeChart.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
TeeChartNetExamples
Assembly-Version: 2.0.1675.28004
Win32-Version: 2.0.1675.28004
CodeBase: file:///F:/Programme/Steema%20Software/TeeChart%20for%20.NET%20v1/Examples/DemoProject/bin/ExecutableDemo/TeeChartNetExamples.exe
----------------------------------------
System.Windows.Forms
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
AxInterop.SHDocVw
Assembly-Version: 1.1.0.0
Win32-Version: 1.1.0.0
CodeBase: file:///F:/Programme/Steema%20Software/TeeChart%20for%20.NET%20v1/Examples/DemoProject/bin/ExecutableDemo/AxInterop.SHDocVw.DLL
----------------------------------------
Interop.SHDocVw
Assembly-Version: 1.1.0.0
Win32-Version: 1.1.0.0
CodeBase: file:///F:/Programme/Steema%20Software/TeeChart%20for%20.NET%20v1/Examples/DemoProject/bin/ExecutableDemo/Interop.SHDocVw.DLL
----------------------------------------
System.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/system.resources/1.0.5000.0_de_b77a5c561934e089/system.resources.dll
----------------------------------------
Accessibility
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/system.windows.forms.resources/1.0.5000.0_de_b77a5c561934e089/system.windows.forms.resources.dll
----------------------------------------
mscorlib.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/mscorlib.resources/1.0.5000.0_de_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
Zum Beispiel:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht von diesem Dialogfeld behandelt.
What do I do to get that fixed.
I searched the forum for the error message, but did not find anything.
Here goes the error message:
System.IO.FileLoadException: Die Manifestdefinition 'TeeChart' der Assembly stimmt nicht mit dem Assemblyverweis überein.
Dateiname: TeeChart
at Steema.TeeChart.Samples.MainForm.ShowForm(TreeView tree)
at Steema.TeeChart.Samples.MainForm.treeView1_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = TeeChart, Version=1.1.1675.27998, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
(Fully-specified)
LOG: Appbase = F:\Programme\Steema Software\TeeChart for .NET v1\Examples\DemoProject\bin\ExecutableDemo\
LOG: Initial PrivatePath = NULL
Calling assembly : TeeChartNetExamples, Version=2.0.1675.28004, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from F:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: TeeChart, Version=1.1.1675.27998, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
LOG: Attempting download of new URL file:///F:/Programme/Steema Software/TeeChart for .NET v1/Examples/DemoProject/bin/ExecutableDemo/TeeChart.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
TeeChartNetExamples
Assembly-Version: 2.0.1675.28004
Win32-Version: 2.0.1675.28004
CodeBase: file:///F:/Programme/Steema%20Software/TeeChart%20for%20.NET%20v1/Examples/DemoProject/bin/ExecutableDemo/TeeChartNetExamples.exe
----------------------------------------
System.Windows.Forms
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///f:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
AxInterop.SHDocVw
Assembly-Version: 1.1.0.0
Win32-Version: 1.1.0.0
CodeBase: file:///F:/Programme/Steema%20Software/TeeChart%20for%20.NET%20v1/Examples/DemoProject/bin/ExecutableDemo/AxInterop.SHDocVw.DLL
----------------------------------------
Interop.SHDocVw
Assembly-Version: 1.1.0.0
Win32-Version: 1.1.0.0
CodeBase: file:///F:/Programme/Steema%20Software/TeeChart%20for%20.NET%20v1/Examples/DemoProject/bin/ExecutableDemo/Interop.SHDocVw.DLL
----------------------------------------
System.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/system.resources/1.0.5000.0_de_b77a5c561934e089/system.resources.dll
----------------------------------------
Accessibility
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/system.windows.forms.resources/1.0.5000.0_de_b77a5c561934e089/system.windows.forms.resources.dll
----------------------------------------
mscorlib.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///f:/windows/assembly/gac/mscorlib.resources/1.0.5000.0_de_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
Zum Beispiel:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht von diesem Dialogfeld behandelt.
Last edited by Werner Kratochwil on Thu Nov 03, 2005 4:49 pm, edited 1 time in total.
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
Could you please send us an example we can run "as-is" to reproduce the error you get here?
You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Could you please send us an example we can run "as-is" to reproduce the error you get here?
You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
Hey Narcis!
What do you want me to copy to this newsgroup?
My entire harddisk?
Or just the TeeChartNetSamples.exe?
I thought with this long output I posted above, you should be able to track the error with the samples.
In the meantime, can you pleeeeease tell me what I need to do to get custom labels?
Thanks
Werner
What do you want me to copy to this newsgroup?
My entire harddisk?
Or just the TeeChartNetSamples.exe?
I thought with this long output I posted above, you should be able to track the error with the samples.
In the meantime, can you pleeeeease tell me what I need to do to get custom labels?
Thanks
Werner
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
You should try the already built demo at TeeChart's program group and implement your custom labels as shown as in the example I pointed you, at its "source" tab.
You don't need to send me anything, I thought what was giving that error was your project.What do you want me to copy to this newsgroup?
My entire harddisk?
Or just the TeeChartNetSamples.exe?
I may not be able to help you with this because I don't understand parts of the error message as they are in a language that I don't understand. However, you could try to remove the demo "bin" and "obj" folders and try building it again.I thought with this long output I posted above, you should be able to track the error with the samples.
In the meantime, can you pleeeeease tell me what I need to do to get custom labels?
You should try the already built demo at TeeChart's program group and implement your custom labels as shown as in the example I pointed you, at its "source" tab.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
Angry
Hi Narcis,
As you can see from the last posting, I am a little mad at you.
I want to get this straight now.
I have always though Steema to be a proper company with a good product and - most of all - very friendly and excellent support. I remember the times when Christopher Ireland did the support.
Now I came across a problem and hoped that I would get the same quality of support. Which I consider my right - because I paid money for the product.
Well then I had this problem with the axes and you posted a sample. I tried it and thought there were lots of errors in it. Well later I found out that it would only work with version 2. But how was I to know that this sample is for version 2 only?
With the last posts I get the impression that you don't really read what I wrote.
If you don't understand the error message, because there is one relevant sentence in German - ask.
Don't ask me to post parts of my code which are irrelevant to the problem I currently have - that my samples don't work.
Again in your last post you ask me to open the samples - they don't work and I would like to know why....
And you should know that they don't work - because I have told you before.
I think you owe me an apology on this.
I'll give you a short history of problem so far:
1.) Axis labels overlap
2.) Labels.Items.Count = 0
3.) Samples don't work
Well I had the idea to search for the Sample files in the Windows Explorer and opened Axis_Custom.cs. Maybe I get an idea there.
Now I get the impression that this might only work for the Windows version not for the ASP.NET version I am using.
Am I right? Am I in the wrong forum? If not, how would I know that all this does not refer to ASP.NET???
Something considering the samples:
The first german sentence means something like: The manifest definition 'TeeChart' of the assembly does not match the assembly reference.
What could be the case is that I installed the evaluation version of version 2 and then the samples of version 1 do not work anymore. Could this be the case? So, do I need to deinstall Steema then und install version 1 again, is that it? Why do I have to guess this and not get the answer from you.
Your comments to this case would be highly appreciated.
Werner
P.S. What bugs me is that the notification, when a reply is posted does not work.
As you can see from the last posting, I am a little mad at you.
I want to get this straight now.
I have always though Steema to be a proper company with a good product and - most of all - very friendly and excellent support. I remember the times when Christopher Ireland did the support.
Now I came across a problem and hoped that I would get the same quality of support. Which I consider my right - because I paid money for the product.
Well then I had this problem with the axes and you posted a sample. I tried it and thought there were lots of errors in it. Well later I found out that it would only work with version 2. But how was I to know that this sample is for version 2 only?
With the last posts I get the impression that you don't really read what I wrote.
If you don't understand the error message, because there is one relevant sentence in German - ask.
Don't ask me to post parts of my code which are irrelevant to the problem I currently have - that my samples don't work.
Again in your last post you ask me to open the samples - they don't work and I would like to know why....
And you should know that they don't work - because I have told you before.
I think you owe me an apology on this.
I'll give you a short history of problem so far:
1.) Axis labels overlap
2.) Labels.Items.Count = 0
3.) Samples don't work
Well I had the idea to search for the Sample files in the Windows Explorer and opened Axis_Custom.cs. Maybe I get an idea there.
Now I get the impression that this might only work for the Windows version not for the ASP.NET version I am using.
Am I right? Am I in the wrong forum? If not, how would I know that all this does not refer to ASP.NET???
Something considering the samples:
The first german sentence means something like: The manifest definition 'TeeChart' of the assembly does not match the assembly reference.
What could be the case is that I installed the evaluation version of version 2 and then the samples of version 1 do not work anymore. Could this be the case? So, do I need to deinstall Steema then und install version 1 again, is that it? Why do I have to guess this and not get the answer from you.
Your comments to this case would be highly appreciated.
Werner
P.S. What bugs me is that the notification, when a reply is posted does not work.
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
feature demo does not work
Hi Narcis,
I found one source of misunderstanding for which I apologize:
I wrote:
Maybe this will clear something up.
But still there is some work to do.
Werner
I found one source of misunderstanding for which I apologize:
I wrote:
and wanted to say:feature does not work
I will correct this in the posting above.feature demo does not work.
Maybe this will clear something up.
But still there is some work to do.
Werner
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
I'm sorry and I'd like to apologize if you feel the level of support you received so far doesn't fulfill what you expected. I'll try to do my best to help you solving your problems with TeeChart.
Sorry but I also didn't knew which TeeChart version you were using. Unless said the opposite I assume that customers are using our current versions (v2 in that case) which are the version that are in constant evolution.
I already told you that I couldn't understand the full error message. However, in most cases, is not enough for us just having the error output, we need more specific information on issues characteristics and thus we ask our customer for examples which is the easiest way for us the reproduce the error on its real environment so that we can find a solution or a workaround for it.
2) As I told you before, this only works for custom labels. If you are not using custom labels you'll get zero.
3) I already commented that on my last paragraph.
Axis_Custom.cs is not the file for the example I suggested. For the custom labels example you should open Axis_Items.cs. Having a look at it you should easily understand it as it's pretty easy.
No, you are on the correct forum for all .NET related issues.
Custom labels work fine with ASP.NET applications as well. That example code ported to an ASP.NET application is:
I already told you above that you'd better run the features demo included with the TeeChart version you have installed on your machine as all versions included its features demo. Even though, if you have both versions installed on your machine you could just change the demo TeeChart's reference to the TeeChart.dll you wish and this should be enough.
I think you'll understand that it is not the most obvious for me to think that you are using one TeeChart version and using another version examples.
As you can see from the last posting, I am a little mad at you.
I want to get this straight now.
I have always though Steema to be a proper company with a good product and - most of all - very friendly and excellent support. I remember the times when Christopher Ireland did the support.
Now I came across a problem and hoped that I would get the same quality of support. Which I consider my right - because I paid money for the product.
I'm sorry and I'd like to apologize if you feel the level of support you received so far doesn't fulfill what you expected. I'll try to do my best to help you solving your problems with TeeChart.
Well then I had this problem with the axes and you posted a sample. I tried it and thought there were lots of errors in it. Well later I found out that it would only work with version 2. But how was I to know that this sample is for version 2 only?
Sorry but I also didn't knew which TeeChart version you were using. Unless said the opposite I assume that customers are using our current versions (v2 in that case) which are the version that are in constant evolution.
With the last posts I get the impression that you don't really read what I wrote.
If you don't understand the error message, because there is one relevant sentence in German - ask.
Don't ask me to post parts of my code which are irrelevant to the problem I currently have - that my samples don't work.
I already told you that I couldn't understand the full error message. However, in most cases, is not enough for us just having the error output, we need more specific information on issues characteristics and thus we ask our customer for examples which is the easiest way for us the reproduce the error on its real environment so that we can find a solution or a workaround for it.
I asked you to open the features demo because there is an example with full source code on how you can use custom labels which was the suggestion I made you to solve your problem. Moreover, features demo work fine when we include them on our installers. If it doesn't for your it may be some problem with your development environment. As far as I have read on your message, you tried using v1 features demo with v2 evaluation installed. You should try the features demo included with the TeeChart version you are using. Please notice that evaluation version also include the features demo with source code.Again in your last post you ask me to open the samples - they don't work and I would like to know why....
And you should know that they don't work - because I have told you before.
I think you owe me an apology on this.
1) That was the issue of this forums thread and I asked you (our customers) to suggest as which would be the behaviour you would expect so that we could consider it to be implemented for future releases as we thought there were many options here.I'll give you a short history of problem so far:
1.) Axis labels overlap
2.) Labels.Items.Count = 0
3.) Samples don't work
2) As I told you before, this only works for custom labels. If you are not using custom labels you'll get zero.
3) I already commented that on my last paragraph.
Well I had the idea to search for the Sample files in the Windows Explorer and opened Axis_Custom.cs. Maybe I get an idea there.
Axis_Custom.cs is not the file for the example I suggested. For the custom labels example you should open Axis_Items.cs. Having a look at it you should easily understand it as it's pretty easy.
Now I get the impression that this might only work for the Windows version not for the ASP.NET version I am using.
Am I right? Am I in the wrong forum? If not, how would I know that all this does not refer to ASP.NET???
No, you are on the correct forum for all .NET related issues.
Custom labels work fine with ASP.NET applications as well. That example code ported to an ASP.NET application is:
Code: Select all
WebChart1.Chart.Axes.Left.Labels.Items.Clear();
(WebChart1.Chart.Axes.Left.Labels.Items.Add(123,"Hello")).Font.Size=16;
(WebChart1.Chart.Axes.Left.Labels.Items.Add(466,"Good\n\rbye")).Transparent=false;
WebChart1.Chart.Axes.Left.Labels.Items.Add(300);
Steema.TeeChart.AxisLabelItem a = WebChart1.Chart.Axes.Left.Labels.Items.Add(-100);
a.Transparent=false;
a.Color=Color.Blue;
a.Transparency=50;
Something considering the samples:
The first german sentence means something like: The manifest definition 'TeeChart' of the assembly does not match the assembly reference.
What could be the case is that I installed the evaluation version of version 2 and then the samples of version 1 do not work anymore. Could this be the case? So, do I need to deinstall Steema then und install version 1 again, is that it? Why do I have to guess this and not get the answer from you.
I already told you above that you'd better run the features demo included with the TeeChart version you have installed on your machine as all versions included its features demo. Even though, if you have both versions installed on your machine you could just change the demo TeeChart's reference to the TeeChart.dll you wish and this should be enough.
I think you'll understand that it is not the most obvious for me to think that you are using one TeeChart version and using another version examples.
I'll test that and I'll investigate what may be wrong.P.S. What bugs me is that the notification, when a reply is posted
does not work.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
Thanks for your long and understanding post.I'm sorry and I'd like to apologize if you feel the level of support you received so far doesn't fulfill what you expected. I'll try to do my best to help you solving your problems with TeeChart.
I can understand this somehow, but let me add some arguments for my case:Sorry but I also didn't knew which TeeChart version you were using. Unless said the opposite I assume that customers are using our current versions (v2 in that case) which are the version that are in constant evolution.
The release of Version 2 is not such a long time ago, that you can assume that all of your customers have switched already.
Version 1 is still updated and for my current use, I don't see a specific reason why I should switch. (Maybe you can convince me )
And since the old version is running and I don't know if the new version will - I might have to change the syntax - I don't have the urge to switch.
Additonally, it is not obvious that between versions there is a change in syntax. One would expect that there is an enhancement in features and a reduction of errors, not a change in syntax.
Considering the samples:
I now got them to running. The problem was: The exe-file from the sample was from version 2, but the dll in the same folder was from version 1, that was the reason it did not work.
The problem was that installation progress must have overwritten the version 2 dll in the samples exe directory. Either it was the installation program of the full version (TeeChartNet1.exe version 1.1.2004.16592) or of the update version (TeeChartNet1UpdateBuild.exe version 1.1.2117.41652). Or there was an older dll included with the version 2 in the first place.
The problem then was that every update problem would not overwrite the samples exe, because it was a newer version.
Only if I deleted the new version, It would install the older version of the samples again and this way I got it running.
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
custom labels
Now I checked out the example.
If you add a costum label, do I have access to all other labels then?
Or do I just have access to those manually added?
What would be a good dummy value, so that the label does not show and does not effect the others?
Thanks for the help so far.
Nice regards
Werner
If you add a costum label, do I have access to all other labels then?
Or do I just have access to those manually added?
What would be a good dummy value, so that the label does not show and does not effect the others?
Thanks for the help so far.
Nice regards
Werner
This may be a little late but here is the code I used on my custom labels to control overlap. I've only implemented the horizontal so far but the vertical would be similar.
Code: Select all
private void axis_GetAxisDrawLabel(object sender, GetAxisDrawLabelEventArgs e)
{
//flags indicating overlap with the previous and next labels.
bool overlapPrv = false;
bool overlapNxt = false;
//Get the axis
Steema.TeeChart.Axis axis = (Steema.TeeChart.Axis)sender;
//get the size of the label text
SizeF currentSize = this.graphics.MeasureString(e.Text, axis.Labels.Font.DrawingFont);
Rectangle currentRect = new Rectangle(e.X, e.Y, (int)currentSize.Width, (int)currentSize.Height);
//graphAxisLabels is a local ArrayList of the custom labels.
//this is needed to get the index value of the label in the array.
int index = this.graphAxisLabels.IndexOf(e.Text);
//if first or last label set e.DrawLabel to true and return.
if(index <= 0 || index >= axis.Labels.Items.Count - 1)
{
e.DrawLabel = true;
return;
}
//get the AxisLabelItem we are trying to draw.
Steema.TeeChart.AxisLabelItem currentLabel = axis.Labels.Items[index];
//if we set visible to false before GetAxisDrawLabel then set e.DrawLabel to false;
if(currentLabel.Visible == false)
e.DrawLabel = false;
//Get the previous and next labels.
Steema.TeeChart.AxisLabelItem prev = axis.Labels.Items[index - 1];
Steema.TeeChart.AxisLabelItem next = axis.Labels.Items[index + 1];
//if this axis is horizontal then the concern is the width of the label.
//TODO implementation for the vertical.
if(axis.Horizontal == true)
{
//if previous is visible we need to see if it will overlap with the current.
if(prev.Visible == true)
{
//get the previous labels text size.
SizeF prevSize = this.graphics.MeasureString(prev.Text, this.chartFont.DrawingFont);
//get the previous label rectangle.
Rectangle prvRect = new Rectangle(
axis.CalcXPosValue(prev.Value), e.Y, (int)prevSize.Width, (int)prevSize.Height);
//set the overlapPrv flag by checking IntersectsWith
overlapPrv = currentRect.IntersectsWith(prvRect);
}
//Check next label
if(next.Visible == true)
{
//get next label text size.
SizeF nextSize = this.graphics.MeasureString(next.Text, axis.Labels.Font.DrawingFont);
//get next label rectangle.
Rectangle nxtRect = new Rectangle(
axis.CalcXPosValue(next.Value), e.Y, (int)nextSize.Width, (int)nextSize.Height);
//set overlapNxt flag by checking IntersectsWith
overlapNxt = currentRect.IntersectsWith(nxtRect);
}
//if any overlap or if e.DrawLabel is false set e.DrawLabel to false.
if(overlapPrv || overlapNxt || e.DrawLabel == false)
e.DrawLabel = false;
}
}
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Werner,
TeeChart for .NET v1 may be enough for your needs. However, v2 has very important improvements and new features as you can see on v2 features demo. One of the most important improvements is on the ASP.NET applications field and its user interactivity. You will see a live ASP.NET demo here.
You only have access to the custom (manually added) labels. To have access to other labels, when not using custom ones, you need to use TeeChart's GetAxisLabels event.If you add a costum label, do I have access to all other labels then?
Or do I just have access to those manually added?
Yes, you are right with that. I should check that before.I can understand this somehow, but let me add some arguments for my case:
The release of Version 2 is not such a long time ago, that you can assume that all of your customers have switched already.
Version 1 is still updated and for my current use, I don't see a specific reason why I should switch. (Maybe you can convince me )
And since the old version is running and I don't know if the new version will - I might have to change the syntax - I don't have the urge to switch.
TeeChart for .NET v1 may be enough for your needs. However, v2 has very important improvements and new features as you can see on v2 features demo. One of the most important improvements is on the ASP.NET applications field and its user interactivity. You will see a live ASP.NET demo here.
That's right, there's no syntax change. v2 is fully backwards compatible. This is an aspect which has been specially considered through TeeChart's history.Additonally, it is not obvious that between versions there is a change in syntax. One would expect that there is an enhancement in features and a reduction of errors, not a change in syntax.
I've tested that and worked for me here. I received a notification of johnk's message.What bugs me is that the notification, when a reply is posted does not work.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Mon Dec 08, 2003 5:00 am
Hi Narcis!
I have tested both with IE and Firefox and some features have problems in the Firefox: Zooming and the Linebreak in Modify standard mark text.
If I click on "Your Account" I only have the option to Logout. Which e-mail adress is used for my account's notification?
Nice regards
Werner
Do I have to add a costum label to use GetAxisLabels?You only have access to the custom (manually added) labels. To have access to other labels, when not using custom ones, you need to use TeeChart's GetAxisLabels event.
Thanks for the link, it does not seem interesting at the moment. Zomming and maybe some other features might get interesting in the near future, though.TeeChart for .NET v1 may be enough for your needs. However, v2 has very important improvements and new features as you can see on v2 features demo. One of the most important improvements is on the ASP.NET applications field and its user interactivity. You will see a live ASP.NET demo here.
I have tested both with IE and Firefox and some features have problems in the Firefox: Zooming and the Linebreak in Modify standard mark text.
Well it does not work for me. And I could not change or see the e-mail-adress the notification should be sent to.I've tested that and worked for me here. I received a notification of johnk's message.
If I click on "Your Account" I only have the option to Logout. Which e-mail adress is used for my account's notification?
Nice regards
Werner