Answers for "c# export datatable to excel"

C#
0

jquery datatable export to excel exportoptions

$(document).ready(function() {
    $('#example').DataTable( {
        dom: 'Bfrtip',
        buttons: [
            {
                extend: 'print',
                exportOptions: {
                    columns: ':visible'
                }
            },
            'colvis'
        ],
        columnDefs: [ {
            targets: -1,
            visible: false
        } ]
    } );
} );
Posted by: Guest on August-25-2021
-1

c# export datatable to excel

XLWorkbook wb = new XLWorkbook();
DataTable dt = GetDataTableOrWhatever();
wb.Worksheets.Add(dt,"WorksheetName");
Posted by: Guest on June-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language