1

Closed

LoadFromDataTable should use Column Caption, not Name

description

When calling LoadFromDataTable with PrintHeaders True, the spreadsheet is using the column's Name, but should use the Caption property. If the Caption is blank, it will return the column Name.
Closed Jun 23, 2012 at 6:20 PM by DarrenYoung

comments

DarrenYoung wrote Jun 23, 2012 at 6:12 PM

I must admit that I didn't know too much about the caption property. Having looked at http://msdn.microsoft.com/en-us/library/system.data.datacolumn.caption(v=vs.71).aspx, it does seem to be the correct property to use.

Will implement.

DarrenYoung wrote Jun 23, 2012 at 6:20 PM

Implemented.