using (NChartControl chartControl = new NChartControl()) { Nevron.Serialization.NSerializer serializer = new Nevron.Serialization.NSerializer(); MemoryStream memStream = new MemoryStream(); serializer.SaveToStream(nChartControl1.Charts[0], memStream, Nevron.Serialization.PersistencyFormat.Binary, null); memStream.Seek(0, SeekOrigin.Begin); Type panelType = nChartControl1.Charts[0].GetType(); Nevron.Chart.NChart chart1 = (Nevron.Chart.NChart)serializer.LoadFromStream(panelType, memStream, Nevron.Serialization.PersistencyFormat.Binary, null); chartControl.Panels.Clear(); //chart.Dock = DockStyle.Fill; chartControl.Panels.Add(chart1); chartControl.ImageExporter.CopyToClipboard(new NSize(200, 200), NResolution.ScreenResolution, new NBitmapImageFormat()); }
Hi,Thanks for posting the project - we managed to replicate the bug and the fix will be available in a SP we'll publish by the end of the week.