# Image.ExportFileName Property

> Gets or sets the file name of an image used, if a Text Control document is saved. An empty string indicates that no export filename has currently be specified for the image. In this case either the original or a constructed filename is used. A filename is constructed in the following form: <document_filename>_<number>.<extension>

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > Image.ExportFileName Property
- **683 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportfilename-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportfilename-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/image/exportfilename-property/llms-full.txt

---

### Description

Gets or sets the file name of an image used, if a Text Control document is saved. An empty string indicates that no export filename has currently be specified for the image. In this case either the original or a constructed filename is used. A filename is constructed in the following form: <document\_filename>\_<number>.<extension>

### Syntax

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

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

### Examples

The following example inserts and configures a named, accessible company logo by using `Image.ExportFileName`.

```csharp
TXTextControl.Image image = new() { FileName = @"Images\company-logo.png", Name = "CompanyLogo" };
textControl.Images.Add(image, -1);

image.ExportFileName = @"Exports\company-logo.png";
if (!string.IsNullOrWhiteSpace(image.ExportFileName))
{
    Console.WriteLine($"Export File Name: {image.ExportFileName}");
}

textControl.Save("report-with-logo.docx", StreamType.WordprocessingML);
```

```vbnet
Dim image As New TXTextControl.Image() With { .FileName = "Images\company-logo.png", .Name = "CompanyLogo" }
textControl.Images.Add(image, -1)

image.ExportFileName = "Exports\company-logo.png"
If Not String.IsNullOrWhiteSpace(image.ExportFileName) Then
    Console.WriteLine($"Export File Name: {image.ExportFileName}")
End If

textControl.Save("report-with-logo.docx", StreamType.WordprocessingML)
```

---

## Nearby

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