# ChartFrame.ExportFileName Property

> 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.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 18.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DataVisualization > ChartFrame.ExportFileName Property
- **331 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/chartframe/exportfilename-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/chartframe/exportfilename-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/chartframe/exportfilename-property/llms-full.txt

---

### Description

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

```csharp
public string ExportFileName { get; set; }
```

```vbnet
Public Property ExportFileName As String
```

### Examples

The following example uses `ChartFrame.ExportFileName` to choose where the chart frame is exported. The change is then applied to the active document or user interface.

```csharp
chartFrame.ExportFileName = "document.docx";
chartFrame.Refresh();
```

```vbnet
chartFrame.ExportFileName = "document.docx"
chartFrame.Refresh()
```

---

## Nearby

- **Previous:** [ChartFrame.ExportCompressionQuality Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/chartframe/exportcompressionquality-property/llms-full.txt)
- **Next:** [ChartFrame.ExportFilterIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/chartframe/exportfilterindex-property/llms-full.txt)
