Hi Kevin,
MSDN says about Clipboard.ContainsImage() that it "Indicates whether there is data on the Clipboard that is in the Bitmap format or can be converted to that format."
We guessed that when you store a metafile in the clipboard, you should check with ContainsData instead of ContainsImage:
bool containsMetafile = Clipboard.ContainsData(DataFormats.MetafilePict);
Our tests confirmed that ContainsData always returns true for EMF, while ContainsImage always returns false, regardless of the size of the metafile.
We also exported a line chart with 1100000 data points and again ContainsData returned true. However, pasting in Word 2010 was not successful as it hanged for a long time and was not able to render its document anymore. Pasting in Excel 2010 was almost successful - the image was rendered once and then the program hanged.
Here is the code that we used for the tests:
void Form1_Load(object sender, EventArgs e)
{
NChart chart = nChartControl1.Charts[0];
NLineSeries series = new NLineSeries();
series.DataLabelStyle.Visible = false;
chart.Series.Add(series);
Random rand = new Random();
for (int i = 0; i < 1100000; i++)
{
series.Values.Add(rand.NextDouble());
}
NImageExporter imageExporter = nChartControl1.ImageExporter;
// NPngImageFormat format = new NPngImageFormat();
NEmfImageFormat format = new NEmfImageFormat();
imageExporter.CopyToClipboard(imageExporter.DefaultImageSize, NResolution.ScreenResolution, format);
bool containsMetafile = Clipboard.ContainsData(DataFormats.MetafilePict);
MessageBox.Show(containsMetafile ? "Yes" : "No");
}
Best Regards,
Nevron Support Team