It is a Windows Forms application.
I am able to find the sheet names using code from here (
http://www.codeproject.com/KB/aspnet/getsheetnames.aspx). I am still working to get it fully functioning in the program how I need it.
Each time a sheet name is found I do a call to my old import method. That import method looks at the index for the sheet quantity and assigns it to a dataGridView based on that index.
E.g. if (i = 0) { dataGridView1.DataSource = dt } else if (i = 1) { dataGridView2.DataSource = dt } ... etc.
The problem I have now, is that on the 2nd call to the import method the code just dies after it runs da.Fill(dt). It never even checks the sheet index or assigns the data table to the datagridview. I even check to see if it gets to the end of the import method, but the flag is never triggered.