Hi Narcis,
I use VS 2010 Pro.
Yes, but I can't easily find that. Chart editor has many options and I may miss some property or combination. On the other hand, code gives no option to doubts
. We need to get to the root of the problem to see under which circumstances this occurs and try to find a solution to it. Until we have a consistent way to reproduce the issue we won't be able to search for a solution.
Having said that, I'm trying to create a chart similar to yours from scratch. I exported your data to a XML file, which I attach, and wrote the code snippet below to load it into a clean chart. Code below only loads series with standard settings and its data. Could you please help us modifying the code below to get a chart similar to your problematic one?
OK, I will check it. The problematic file was created with my old application written in Pascal. And, of course, not all properties have an equivalent in TeeChart so something might be gone wrong during conversion. Additionally, I heavily use tags to store experimental parameter or rich text strings.
I have the possibility (it may take some time to figure it out) to only import the data from my old file format. That's comparable to your attempt with the XML file. May be that's another way to come closer to the problem.
Best regards
Uli
Added:
I just checked your code: when At the xmlsource1.Load command executes I get the following error message (in both VB and c#):
System.FormatException wurde nicht behandelt.
Message=Die Eingabezeichenfolge hat das falsche Format.
Source=mscorlib
StackTrace:
bei System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
bei System.Convert.ToDouble(String value)
bei Steema.TeeChart.Data.XmlSource.LoadSeriesNode(XPathNavigator node, String nameSpaceURI)
bei Steema.TeeChart.Data.XmlSource.Load(XmlDocument d)
bei Steema.TeeChart.Data.XmlSource.Load(String fileName)
bei WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) in d:\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:Zeile 28.
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(Form mainForm)
bei WindowsFormsApplication1.Program.Main() in d:\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs:Zeile 18.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException: