TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramesh gawade
1.6k
134
49k
how to open password protected excel file in .net
Apr 18 2017 8:54 AM
error : External table is not in the expected format.
code:
connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data Source=" + fName + ";" + @"Jet OLEDB:Database Password=Test" + ";" + @"Extended Properties=" + Convert.ToChar(34).ToString() + @"Excel 8.0" + Convert.ToChar(34).ToString() + ";";
OleDbConnection OleDbcon = new OleDbConnection(connectionString);
OleDbDataAdapter adp = new OleDbDataAdapter("select * from [Sheet1$]", OleDbcon);
adp.FillSchema(dt1, SchemaType.Source);
adp.Fill(dt1);
Reply
Answers (
2
)
how to round of in sql
About project how to create web application