accessing Excelfile from Resources
i am trying to access a Excel file stored in my Resources and build-embed by OLEDB but when i run the program i get database is read only.. i am using the below code. Please help
conMap.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + CTARepository.Properties.Resources.mapping + ";Extended Properties=Excel 8.0;"; 开发者_Python百科conMap.Open();
mapping is my mapping.xls file
You should get some idea from Accessing an excel resource in another c# project
精彩评论