我正忙着制作一个可以测量各种事物的应用程序。测量期间的结果使用 ZedGraph.dll 显示在图表中。
测量后,我想将图表的一些“屏幕截图”导出到 Excel,这很好用。除了一个问题,图像在 Excel 中是不可选择的。你不能对他们做任何事。有没有办法解决这个问题?
我使用的代码:
// Export panes
OneCel = (Excel.Range)xlWorkSheet.Cells[row, col];
Clipboard.SetDataObject(zgcRGB.MasterPane.GetImage(550, 500, 400f));
xlWorkSheet.Paste(OneCel, misValue);