I have program that outputs the data as a .tab file. It uses Array of Classes (each class has one row). it loops though the Array of Classes and uses a overload ToString() to get all the data as a single tab delimeted string. Then it saves all the stringbuilder to a file.
I want to now save this as a excel file using .Cells. If I use importarray function. the .Cells doesn't convert any of the number text into numbers. (When the tab file is opened by Excel the numbers are converted).
int importcounter = 1;
foreach (clsItemPlanItem aItem in aryItems)
{
string[] AryLines = aItem.ToString().Split('\t');
wrksheet.Cells.ImportArray(AryLines, importcounter, 0, false);
importcounter++;
}
I really want the the control order of the data to be controled by the Class.
How do I get .Cells to convert the Data?