Spread sheets and pdfs
Im after a pointer in the right direction. Im trying to figure out how some websites create downloadable pdfs or more importantly excel spread sheets. Some of the ones that spring to mind are like the online banking sites where you can view a statement using the entered search parameters and then download it as a spread sheet.
How is this done?
If you are looking to create a button or a link for Download then you can use following HTML code on the webpage from where you want the user to get it downloaded like this:
1) Making a Download Button:
<input type="button" value="Download" onClick="window.location.href='path to excel or pdf file on your site directoty' ">
2.) Making a Download Link:
<a href="path to excel or pdf file on your site directoty" target="_blank">Download File</a>
For more clarity you can check the stepwise procedure here:
I think you misunderstood my problem. I know how to create the download links. I want to know how to go about creating the spreadsheets from the data in the database.
Sorry for misunderstanding. Well I have no idea based on my personal experience regarding to this problem but I think that have to be done via back-end coding.
Originally Posted by maanse
I don't know about spreadsheets but for PDF you can use FPDF or TCPDF
You may want to look at http://devzone.zend.com/27/reading-a...eets-with-php/
As for PDFs, there are several out there (search the forum for fpdf and you'll see several posted by me).