SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2011
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

  2. #2
    SitePoint Member
    Join Date
    Jan 2013
    Location
    NewYork
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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/webautho...loadables.html

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2011
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    SitePoint Member
    Join Date
    Jan 2013
    Location
    NewYork
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by maanse View Post
    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.

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    51
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I don't know about spreadsheets but for PDF you can use FPDF or TCPDF

  6. #6
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,813
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    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).
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •