Copy Chart

Copy Chart To Clipboard MemoryStream MemoryStream1 = new MemoryStream(); Chart1.SaveImage(MemoryStream1, System.Windows.Forms.DataVisualization.Charting.ChartImageFormat.Bmp); System.Drawing.Bitmap Bitmap1 = new System.Drawing.Bitmap(MemoryStream1); System.Windows.Forms.Clipboard.SetImage(Bitmap1); Save Chart To File const string MY_FILE_EXTENSION = "png"; String SaveAsFilename; //If last directory is not valid then default to My Documents if (!Directory.Exists(Path.GetDirectoryName(ApMain.LastFileDirectory))) ApMain.LastFileDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); SaveFileDialog SelectFileDialog = new SaveFileDialog(); SelectFileDialog.Filter = "Image File (*." + […]

Read More

.Chart Control General

Good Tutorial https://msdn.microsoft.com/en-us/library/dd489237.aspx?f=255&MSPPError=-2147217396 Add a chart to a form Toolbox. > Data category > drag a Chart control onto the form If you can't see the Chart control right click in the Toolbox, select Choose Items, and then select the following namespaces in the .NET Framekwork Components tab: System.Web.UI.DataVisualization.Charting System.Windows.Forms.DataVisualization.Charting  

Read More