I have a datatable and want it to export it to excel file, it is a wpf application and all the solutions that i have found are for web application asp.net please help...
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
one way
http://www.codeproject.com/Articles/30169/Excel-export-from-DatagridView
http://support.microsoft.com/default.aspx?scid=kb;en-us;317719
just to make it better visible, for all
You can save a .csv(Comma Seperated Value File) from your datatable. This file can then be opened in Excel.
Moreover: Whether it is WPF or Winforms, converting is same in both because its conversion code is written in your language i.e. C# and is not specific to WPF or Winforms.
For me Work fine thank you ... some one like vb.net ?
Sub ExcelFile(ByVal dt As DataTable)