Back to Devexpress

DashboardExtractDataSource.FileName Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboardextractdatasource.md

latest4.5 KB
Original Source

DashboardExtractDataSource.FileName Property

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Gets or sets the path to the file containing a data extract.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
[Browsable(true)]
[DefaultValue(null)]
public string FileName { get; set; }
vb
<DefaultValue(Nothing)>
<Browsable(True)>
Public Property FileName As String

Property Value

TypeDefaultDescription
Stringnull

A String value that specifies the path to the file containing a data extract.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the FileName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-extract-data-source/CS/ExtractDataSourceExample/Form1.cs#L26

csharp
extractDataSource.FileName = Path.GetFullPath($"Extract_{ds.Name}.dat");
extractDataSource.UpdateExtractFile();

winforms-dashboard-data-extract-filtering/CS/ExtractFiltering/DesignerForm1.cs#L20

csharp
dataExtract.ExtractSourceOptions.DataSource = excelDataSource;
dataExtract.FileName = @"..\..\Data\Extract1.dat";
// Includes only "Beverages" rows from the "CategoryName" table to the Extract Data Source.

web-forms-dashboard-extract-data-source/CS/ASP_WebDashboard/Default.aspx.cs#L47

csharp
extractDataSource.ExtractSourceOptions.DataMember = "Invoices";
extractDataSource.FileName = extractFileName;

winforms-dashboard-extract-data-source/VB/ExtractDataSourceExample/Form1.vb#L29

vb
extractDataSource.FileName = Path.GetFullPath($"Extract_{ds.Name}.dat")
extractDataSource.UpdateExtractFile()

winforms-dashboard-data-extract-filtering/VB/ExtractFiltering/DesignerForm1.vb#L19

vb
dataExtract.ExtractSourceOptions.DataSource = excelDataSource
dataExtract.FileName = "..\..\Data\Extract1.dat"
' Includes only "Beverages" rows from the "CategoryName" table to the Extract Data Source.

web-forms-dashboard-extract-data-source/VB/ASP_WebDashboard/Default.aspx.vb#L45

vb
extractDataSource.ExtractSourceOptions.DataMember = "Invoices"
extractDataSource.FileName = extractFileName

See Also

DashboardExtractDataSource Class

DashboardExtractDataSource Members

DevExpress.DashboardCommon Namespace