Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2003
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    download to excel

    I have a table that is displayed that I would like the users to be able to download to excel... this table comes up in a new window that does not have the file-edit-view menu on it. What is the easiest way to do this? I was thinking of converting it to XML, but how do I make a button that will allow the user to download a file and make the file at the same time.

    Damian

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's a number of possible ways. What I'd do is start with a neutral data format to store the information (XML would be ideal); then you need two processes - one creates an HTML page (simple enough) and the other creates an excel spreadsheet ( .. er .. )

    Do you have a plan for server-generating Excel documents? I don't know - I'd imagine MSDN would know, and that it would involve installing IIS-server extensions.

    But server-generating a CSV file would be reasonably simple - you just parse your XML into a csv text-file which you then prompt for download.

    I can give more info on most of this (except the excel generation)
    Last edited by brothercake; 03-14-2003 at 08:59 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

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