Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Problem in Importing data from Excel (Urgent)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abhijeet Kumar - 04 Jul 2006 12:05 GMT
Hi
I am using following code to Import data from Excel File in .NET 2005

DataSet myDataSet = new DataSet();

string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source =
c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0";

OleDbConnection conn = new OleDbConnection(strConn);

OleDbDataAdapter addapter = new OleDbDataAdapter();

addapter.SelectCommand = new OleDbCommand("Select * From Mercury$", conn);

addapter.Fill(myDataSet);

On Executing it is giving me Following error
"Could not find installable ISAM."

I am using Excel2003 installed on Windows 2000.

Thanks in advance

Abhi
Cowboy (Gregory A. Beamer) - 04 Jul 2006 14:52 GMT
http://msdn.microsoft.com/data/ref/mdac/downloads/

Jet SP 8 (bottom of page) - download for your platform.

Signature

Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************

> Hi
> I am using following code to Import data from Excel File in .NET 2005
[quoted text clipped - 20 lines]
>
> Abhi
sloan - 04 Jul 2006 16:37 GMT
9 times out of 10..... its your connection string.

Every space , quote and everything else has to be perfect.  not "close", but
~~perfect.

Try alternate versions from

www.connectionstrings.com

> Hi
> I am using following code to Import data from Excel File in .NET 2005
[quoted text clipped - 20 lines]
>
> Abhi

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.