gajo357 Posted February 7, 2013 Report Share Posted February 7, 2013 Hi, When I copy the chart to the clipboard, it is copied only with the left and top border, but the bottom and right are missing. chart.Border = new ChartFX.WinForms.Adornments.SimpleBorder(SimpleBorderType.Color, Color.Black); chart.Export(FileFormat.Bitmap); Could it be something with export size? private static readonly Size ExportImageSize = new Size(600, 450); Quote Link to comment Share on other sites More sharing options...
ExequielA Posted May 8, 2013 Report Share Posted May 8, 2013 Hi, Please take a look at the following code to export the chart to the clipboard: As Metafile: chart1.Export(FileFormat.Metafile); As Bitmap: chart1.Export(FileFormat.Bitmap); As Stream: MemoryStream ms = new MemoryStream(); chart1.Export(FileFormat.Metafile, ms); ms.Seek(0, SeekOrigin.Begin); Bitmap bmp = new Bitmap(ms,true); Clipboard.SetImage((Image)bmp); I hope this helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.