Gets or sets the file name, when the chart's image is exported. An empty string indicates that no export filename has currently be specified for the chart's image. In this case a constructed filename is used. A filename is constructed in the following form: <document_filename>_<number>.<extension>. The technical article Loading and Saving Images describes where newly created image files are stored.

Syntax

public string ExportFileName { get; set; }

Examples

The following snippet shows how to use the TXTextControl.DataVisualization.ChartFrame.ExportFileName property. Here, it is set to an empty string - which means that an export filename is constructed in a specific Form. Please check the property description.

System.Windows.Forms.DataVisualization.Charting.Chart myChart = new System.Windows.Forms.DataVisualization.Charting.Chart();
TXTextControl.DataVisualization.ChartFrame chartFrame = new TXTextControl.DataVisualization.ChartFrame(myChart);

chartFrame.Name = "points";
chartFrame.ExportCompressionQuality = 100; 
chartFrame.ExportFileName = ""; // here, the ExportFileName is set
chartFrame.ExportFilterIndex = 0; 
chartFrame.ExportResolution = 0; 
System.Drawing.Rectangle myChartFrameBounds = chartFrame.Bounds;  
System.ComponentModel.Component ThisIsMyChart = chartFrame.Chart; 
chartFrame.ID = 0; 
chartFrame.Alignment = 
chartFrame.InsertionMode = 
chartFrame.Moveable = true;
chartFrame.SaveMode = TXTextControl.ImageSaveMode.Auto; 
System.Drawing.Size myFrameSize = chartFrame.Size;
chartFrame.Sizeable = true;
chartFrame.TextDistances = new int[] { -1, -1, -1, -1 }; 
int myTextPosition = chartFrame.TextPosition;

textControl1.Charts.Add(chartFrame, -1);