accessing Excelfile from Resources
Posted
by Sathish
on Stack Overflow
See other posts from Stack Overflow
or by Sathish
Published on 2010-03-08T04:49:09Z
Indexed on
2010/03/08
4:51 UTC
Read the original article
Hit count: 188
c#
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;"; conMap.Open();
mapping is my mapping.xls file
© Stack Overflow or respective owner