Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-30-2007, 11:27 PM   PM User | #1
Stefan Sobering
New Coder

 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Stefan Sobering is an unknown quantity at this point
xls files in html

i work in a small store, and for their website they would like to display their inventory. is there any way to display xls (spreadsheet files) in html? at the end of the day they would export their inventory and overwrite the xls file on the webserver. all i need to know how to do is display xls files in html. any help is appreciated. thanks!
Stefan Sobering is offline   Reply With Quote
Old 10-30-2007, 11:41 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You can't. You would need to use a server side language like php or asp to parse the xls file and then you could display the results using html but again you STILL need a server side language. HTML is not one of them. Perhaps they should hire a professional.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 10-31-2007, 04:42 AM   PM User | #3
zro@rtv
Regular Coder

 
zro@rtv's Avatar
 
Join Date: Feb 2005
Location: on the network
Posts: 433
Thanks: 0
Thanked 1 Time in 1 Post
zro@rtv is an unknown quantity at this point
Agree with Aero. Perhaps enlisting the services of someone qualified may be of use.

For the record, since you mention xls, I assume your using the MS products (yuk) which should allow you to export the document to 'Web Page'. I'm sure what ever it generate is absolutely horrendous, but that is a possible optoin that I do NOT really endorse.

Another perhaps viable solution would be to export the sheet as XML, and write an XSLT to make it pretty? I'm kinnda grabbing at straws here, but maybe.

Yr best bet is write a server side solution thats nice and clean.
__________________
._-zro
zro@redtv
zro.redtv.org

"If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
-Tim Berners-Lee, Weaving the Web, 1999
zro@rtv is offline   Reply With Quote
Old 10-31-2007, 07:13 PM   PM User | #4
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Linking directly to the file makes Excel directly display it in the web browser, so you could try <iframe>s.
Apostropartheid is offline   Reply With Quote
Old 10-31-2007, 07:31 PM   PM User | #5
CaptainB
Regular Coder

 
Join Date: Jun 2007
Posts: 805
Thanks: 123
Thanked 23 Times in 23 Posts
CaptainB is an unknown quantity at this point
Iframes have lots of disadvantages - stay free of 'em.
CaptainB is offline   Reply With Quote
Old 10-31-2007, 07:37 PM   PM User | #6
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
Indeed they do, but if he absolutely cannot do anything else...
Apostropartheid is offline   Reply With Quote
Old 11-01-2007, 05:46 AM   PM User | #7
zro@rtv
Regular Coder

 
zro@rtv's Avatar
 
Join Date: Feb 2005
Location: on the network
Posts: 433
Thanks: 0
Thanked 1 Time in 1 Post
zro@rtv is an unknown quantity at this point
Quote:
Originally Posted by CyanLight View Post
Linking directly to the file makes Excel directly display it in the web browser, so you could try <iframe>s.
Relying on the possibility that the users have an appropriate version of excel installed and configured to work in that disgusting manor is highly inadvisable. If you are simply going to offer the XLS file for download I would suggest making sure it is forced to download, and also would recommend having it available in different formats as well.

and yes, frames suck.
__________________
._-zro
zro@redtv
zro.redtv.org

"If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
-Tim Berners-Lee, Weaving the Web, 1999
zro@rtv is offline   Reply With Quote
Old 11-01-2007, 09:41 PM   PM User | #8
Stefan Sobering
New Coder

 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Stefan Sobering is an unknown quantity at this point
I know php. what do i do?
Stefan Sobering is offline   Reply With Quote
Old 11-02-2007, 05:22 AM   PM User | #9
Stefan Sobering
New Coder

 
Join Date: Jan 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Stefan Sobering is an unknown quantity at this point
Let me rephrase that, i know BASIC php.
Stefan Sobering is offline   Reply With Quote
Old 11-02-2007, 07:06 AM   PM User | #10
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
I'm guessing you haven't tried searching for "Reading XLS file with php"?

http://www.ustrem.org/en/articles/re...s-with-php-en/
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 11-02-2007, 07:54 AM   PM User | #11
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,711
Thanks: 2
Thanked 251 Times in 243 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
Long term, you are going to want a general purpose server side scripting language solution (just in case you have not made that decision already.)

Publishing the file as a "web page" using Excel or providing the .xls file as a link, suffer from usability problems and are both difficult/impossible to format to match the look and feel of the web site they are in.

By using a server side scripting language, you can format and present the data any way that you want.

The next step of course would be to computerize the inventory (order, receiving, shipping, payment, invoice...) system using a database and skip the spreadsheet all together.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
CFMaBiSmAd is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:28 AM.


Advertisement
Log in to turn off these ads.