# DataSourceExtractionDialog Class

> The DataSourceExtractionDialog class allows the user to save an excerpt from the currently loaded data source. An upper limit of extracted data rows can be specified in the dialog. It works only with data provider based data sources and throws an exception when called with any other loaded data source type. The DataSourceExtractionDialog is a modal dialog box which must be shown with the DataSourceExtractionDialog.ShowDialog method.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.Form` › `TXTextControl.DocumentServer.Windows.Forms.HighDpiForm`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Windows.Forms > DataSourceExtractionDialog Class
- **849 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/llms-full.txt

---

### Description

The DataSourceExtractionDialog class allows the user to save an excerpt from the currently loaded data source. An upper limit of extracted data rows can be specified in the dialog. It works only with data provider based data sources and throws an exception when called with any other loaded data source type. The DataSourceExtractionDialog is a modal dialog box which must be shown with the `DataSourceExtractionDialog.ShowDialog` method.

### Syntax

```csharp
public class DataSourceExtractionDialog : HighDpiForm
```

```vbnet
Public Class DataSourceExtractionDialog
    Inherits HighDpiForm
```

### Examples

The following example creates a Data Source Extraction Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using TXTextControl.DocumentServer.Windows.Forms.DataSourceExtractionDialog dataSourceExtractionDialog = new(new TXTextControl.DocumentServer.DataSources.DataSourceManager());
dataSourceExtractionDialog.AllowTransparency = true;
```

```vbnet
Dim dataSourceExtractionDialog As New TXTextControl.DocumentServer.Windows.Forms.DataSourceExtractionDialog(New TXTextControl.DocumentServer.DataSources.DataSourceManager())
dataSourceExtractionDialog.AllowTransparency = True
```

---

## In This Section

- [DataSourceExtractionDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/constructor/llms-full.txt): Creates a DataSourceExtractionDialog object for the specified DocumentServer.DataSources.DataSourceManager.
- [DataSourceExtractionDialog.FileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/filename-property/llms-full.txt): Returns the file name of the file into which the data source excerpt has been saved.
- [DataSourceExtractionDialog.MaxRows Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/maxrows-property/llms-full.txt): Returns the maximum number of data rows from the selected table which were saved into the excerpt file.
- [DataSourceExtractionDialog.SelectedTable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/selectedtable-property/llms-full.txt): Returns a description of the table which was selected by the user to be exported.

---

## Nearby

- **Previous:** [DatabaseConnectionDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/constructor/llms-full.txt)
- **Next:** [DataSourceExtractionDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/constructor/llms-full.txt)
