Spread sheets and pdfs

Hi guys,

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:

<form>
<input type=“button” value=“Download” onClick="window.location.href=‘path to excel or pdf file on your site directoty’ ">
</form>

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:
http://med.stanford.edu/irt/webauthor/training/dreamweaver/downloadables.html

Hi,

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.

I don’t know about spreadsheets but for PDF you can use FPDF or [URL=“http://www.tcpdf.org/”]TCPDF

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).