on 09-08-2008 7:25 AM
hi all,
i have a doubt while uploading data from XLS to my local database in DI-API.....In the below coding iam uploading data from the path Bin>Materials->Item1.xls, to my local db....here i have to hard-code the XL file name...is there any method by taking the XL file dynamically.....
FileName = System.AppDomain.CurrentDomain.BaseDirectory() & "\MATERIALS\Item1.xls"
rs = oCompany.GetBusinessObject(BoObjectTypes.BoRecordset)
objExcel = CreateObject("Excel.Application")
objWrkBk = objExcel.Workbooks.Open(FileName)
objSht = objWrkBk.Worksheets(1)
Regards,
shangai.
Hi Shanghai,
Let us have alook at this link:
http://support.microsoft.com/kb/q195951/
Her it is clearly explained about "
How To Query and Update Excel Data Using ADO From ASP"
I hope this will help u.....:)
Regards
Mohana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do u want to select the file by using a FILE browser ?? by using this u can select a file........
Or do u want to select a file frm a folder, without using a file browser..
search in google for "get a file in a folder in vb.net" and u'll get many examples,..
hope it helps,
Vasu Natari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.