Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used a oledb connection for interation with Excel File, but when i used a password protected excel file at that time the above connection sting is not working..

please suggest me a connection sting that will help me to open a password protected excel file..

My Connection String...
C#
conString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FilePath + ";Extended Properties=Excel 8.0";
Posted

1 solution

Here is an article on CP which would help you out on this:

Automating MS Excel Using Visual Studio .NET[^]
 
Share this answer
 
Comments
Tejas Vaishnav 27-Sep-11 0:18am    
Thats all what i have done so far...
but i want to open a excel file with password protection and read write data using oledb connection

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900