简体   繁体   English

直接使用LINQ或更好的方法将数据表导出到excel

[英]Export datatable to excel using LINQ or better way directly

I dont want intermittent of using Gridview or Datagrid controls. 我不想间歇使用Gridview或Datagrid控件。 I want directly to export a DataTable data to an Excel in straight forward. 我想直接将DataTable数据直接导出到Excel。 Is there a way to export by querying the DataTable and export the same into a new Excel. 有没有一种方法可以通过查询DataTable并将其导出到新的Excel中。

Please HELP!! 请帮忙!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM