How to print a DataTable at client with excel
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
I want to generate report at client with excel,but i don't known how to access my data source(DataTable Object),Please give me some tips. -- modified at 20:09 Friday 30th December, 2005
Debug --> Locals Inspect that window and look at the data source. It will you what is it. DataSource.GetType().ToString(); would probably do it also You know what the data source is because you placed it. Its still the same You can use WriteXML and use a style sheet to transform to Excel xml. You could extend the DataSet and override the WriteXML to produce excel compatible xml. 1 line of code equals many bugs. So don't write any!!