Jump to content

How to open excel sheet in browser using php


garrisonian14

Recommended Posts

Hi Friends,

 

All of you may have seen on websites that we click on a link and it opens pdf document in browser. I want to do same thing but for excel documents. i want to implement it for excel documents i.e. if a user clicks on a link it opens an excel sheet in same browser window.

 

i tried <a href="test.xls">My sheet</a>. it worked in I.E 7. but it doesn't work in firefox and I.E 6.

 

Please help me for this implementation. It is very urgent.

 

 

Thanks,

 

Ali

Link to comment
Share on other sites

Having a link which points to an excel file, will prompt the user to download it or open it up with Excel. I'm sure you can find libraries (like this one i found google-ing) and extensions for dealing with excel files, letting you read or write them. By reading, I mean having a nice presentation of the excel file with html tables. I'm sorry, but i don't know of any other way.

Link to comment
Share on other sites

other than that you could open the excell file and save it as an HTML page

 

That should be quite a manual work. I'm still of the opinion that the best approach on this is reading the excel file (with any php libraries or extensions) and generating an html table.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.