Table of Contents

Method ExportToExcelOleDbAsync

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

ExportToExcelOleDbAsync(DataTable, string)

Exports the specified DataTable to an Excel file asynchronously.

public static Task<bool> ExportToExcelOleDbAsync(DataTable dataTable, string fileName)

Parameters

dataTable DataTable

The DataTable to export.

fileName string

The name of the Excel file.

Returns

Task<bool>

True if the export is successful, otherwise false.