-
importing from excel
i am imorting excel data to sql db uisng asp.net
i have 2 issue regrading the same
1) suppose i import a A.xls when the .net application is executed
it gets imported correctly for the first time
but if i try to import the same file again i get error as this file is used by some process...
i have
private void KillUnusedExcel()
{
System.Diagnostics.Process[] killUnused = System.Diagnostics.Process.GetProcessesByName("Excel");
foreach (System.Diagnostics.Process open in killUnused)
{
if (open.MainWindowTitle.Length == 0)
{
open.Kill();
}
}
}
i closed the connection string also but still the excel doesnot quit from memory
so how to relase the excel from memory once the importing of one file is done
2) Al l records not getting imported in production server but works fine in development server
i am having 50 records in my excel sheet
in my developemnt server all 50 recods gets imported
i published the same code in my production server & using the same exxel files
so all 50 records shld be imported
but only one record is imported & no error msg is thrown
so asked abyt the remaining records
as the code is same ,database is same & excel sheet is aslo same
Similar Threads
-
By Spumbu1977 in forum VB Classic
Replies: 4
Last Post: 09-05-2006, 10:07 PM
-
Replies: 7
Last Post: 10-07-2002, 06:12 PM
-
By Scott Hutchinson in forum .NET
Replies: 0
Last Post: 09-30-2002, 11:08 PM
-
Replies: 0
Last Post: 09-30-2002, 05:17 PM
-
By denis pelletier in forum XML
Replies: 8
Last Post: 08-08-2002, 09:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|