c# (WinForms-App) export DataSet to Excel

后端 未结 8 2101
野趣味
野趣味 2020-12-04 14:46

I need a solution to export a dataset to an excel file without any asp code (HttpResonpsne...) but i did not find a good example to do this...

Best thanks in advance

8条回答
  •  无人及你
    2020-12-04 15:20

    the code have problem with null values.

     public void WriteExcelAutoStyledCell(object value)
        {
            //solve null values
            if (value is DBNull) return;
    

提交回复
热议问题