Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
reading from excel file
Old 01-06-2004, 06:59 PM reading from excel file
binaryking's Avatar
Average Talker

Posts: 16
Trades: 0
Hello all,
I am new here and new to asp.
My boss just told me to make a webpage that can read from a excel file and display the columns and the rows of that excel file.
I can use either classic asp or asp.net
I have no idea where to start. Can someone help me .
anything would help.

thanks
binaryking is offline
Reply With Quote
View Public Profile Visit binaryking's homepage!
 
 
Register now for full access!
Old 01-06-2004, 07:11 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
The best way to read the data would be by converting the excel file to csv (comma separated values). Then it would be simple enough to read the file in as a variable, split it into an array based on the new line character (into rows), then split each row into columns on the comma character. Hence you would have a 2D array of the spreadsheet which you could output as required. As long as the excel file was not too big it would work fine.

What sort of data are you planning to store?
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 01-06-2004, 10:16 PM
binaryking's Avatar
Average Talker

Posts: 16
Trades: 0
Ok,
the excel file is going to have 6 columns!
How do I fit everything into a 2D array.

The issues is that they keep updating the excel file.

thanks
binaryking is offline
Reply With Quote
View Public Profile Visit binaryking's homepage!
 
Old 01-07-2004, 03:08 AM
milomedia's Avatar
Super Talker

Posts: 133
Location: durango, colorado
Trades: 0
I'm working on a very similar situation, but using PHP and mySQL. I built a simple uploader for the client to upload the excel file as a csv file. The same script sent me an email telling me to import it using mysqlimport -p -v -d --local --fields-terminated-by=','
--lines-terminated-by='\n' etc.... i'm sure if i was less lazy i could make this automated, but to make a long story short, putting excel files into databases works well.
__________________
_______________________________
Feeling down? listen to
Please login or register to view this content. Registration is FREE
milomedia is offline
Reply With Quote
View Public Profile Visit milomedia's homepage!
 
Reply     « Reply to reading from excel file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18165 seconds with 12 queries