reading Excel file in asp

Has anyone had experience reading from an excel file into asp? If so I need to discuss how to implement it.
longjtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
longjtAuthor Commented:
OK I can get the Microsoft example to run, very sloppy code on Microsoft’s behalf. Anyway when I try to run the same code against another file I get:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Excel Driver] External table is not in the expected format.

I have updated my system DSN and added the named range to the new table. What is the expected format?
0
fritz_the_blankCommented:
I am not sure--no way to tell without being there. Is the excel file in the same directory as your page? If not, then you may have a permissions error.

FtB
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

longjtAuthor Commented:
Yes the file is in the same dir as the asp page. so was the test page. im going to look at the file itself to see if i can find any problems with format.
0
jmelikaCommented:
longjt,

Is the file csv or xls?  If it's csv, you can read it as a flat file and format it in a table as you read each line.  If it's xls, then FtB's link is what you need.

The error message you received sounds to me like the tables you're calling are different than how you're calling them.  Could you paste your code so we can analyze?

Thanks,
JM

0
fritz_the_blankCommented:
The answer in ID: 12697166 works--longjt  said so in ID: 12697662.

FtB
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.