Profile Picture

Nevron Chart .NET for WPF

Posted By s s 10 Years Ago
Author
Message
s s
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 3, Visits: 11
I need export chart, i found this code

   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());
    }

chartControl.ImageExporter always null
nChartControl.ImageExporter also null 
I use .NET 4.0

Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hi,

We just tested the code below and it was working properly - what is the version of the control you're testing with? Can you post the code that originally configures the chart for review?

Best Regards,
Nevron Support Team



s s
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 3, Visits: 11
Please see this project. nChartControl.ImageExporter equal null

Attachments
test.zip (688 views, 8.00 KB)
Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009

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.



Best Regards,
Nevron Support Team



s s
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 3, Visits: 11
Thank you very much!



Similar Topics


Reading This Topic