Export List<T> to Excel (QueryTable?)
After building a list of objects (records of 7 fields), can anyone think of an elegant way to export the list directly to a querytable or Excel in general?
I understand that there is no order for elements in a generic list, but in every example I have researched on the internet, it boils down to nested loops of cells within objects somewhere. There has to be a set-based way to do the conversion.
:ehh:
Re: Export List<T> to Excel (QueryTable?)
Search the internet for "export a generic list to excel in c#".
Re: Export List<T> to Excel (QueryTable?)
Much appreciated, Arjay. It looks like the most promising will be serialization and reflection. Really didn't find much through Google directly.