maanse — 2013-04-03T16:06:45-04:00 — #1
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?
arthurhcates — 2013-04-04T03:02:39-04:00 — #2
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:
maanse — 2013-04-04T03:27:09-04:00 — #3
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.
arthurhcates — 2013-04-08T09:18:51-04:00 — #4
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.
avram — 2013-04-08T09:34:16-04:00 — #5
I don't know about spreadsheets but for PDF you can use [FPDF or [URL="http://www.tcpdf.org/"]TCPDF](http://www.fpdf.org/)
cpradio — 2013-04-08T09:34:41-04:00 — #6
You may want to look at http://devzone.zend.com/27/reading-and-writing-spreadsheets-with-php/
As for PDFs, there are several out there (search the forum for fpdf and you'll see several posted by me).