Profile Picture

Save chart control as image to stream

Posted By Elvira Aminova 12 Years Ago
Author
Message
Elvira Aminova
questionmark Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 10, Visits: 1
Hi!

I'm trying to save chart control image to stream:

MemoryStream ms = new MemoryStream();
_chart_control.ImageExporter.SaveToStream(ms, new NEmfImageFormat());

But SaveToStream method throw NotSupportedException with message "Specified method is not supported".

Using other image formats such as NXamlImageFormat, NSvgImageFormat, doesn't produce this error.

What's happening with NEmfImageFormat?




Similar Topics


Reading This Topic