LoadFromCollection - How to remove the ReturnCode and ReturnMessage columns in exported Excel file

Jun 26, 2012 at 3:52 PM

Hi,

I am using the LoadFromCollection method to export my data to an Excel format like such:

ws.Cells.LoadFromCollection((List<myObject>,true));

 
  

 

 

However,there are two extra columns that does not exist in my List<myObject> which are ReturnCode and ReturnMessage also get exported to the Excel file.  Is there anyway to remove or hide them?