Saving web page as Excel spreadsheet

Discussion in 'ASP .Net' started by Mark, Sep 8, 2006.

  1. Mark

    Mark Guest

    I have a web page with a GridView that displays data from a SqlDataSource
    component.

    I need to allow the user to click a button and have this data delivered to
    them in a .xls file that they can save to their local machine.

    Is the a way to do this with .NET or will I need a third party component?

    --
    Best regards
    Mark
    Mark, Sep 8, 2006
    #1
    1. Advertising

  2. There are a couple of ways.

    1. Change MIME type to Excel and display
    2. Use a third party library like ExcelWriter

    It depends on how much funcationality of Excel you need.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    *************************************************
    Think outside of the box!
    *************************************************
    "Mark" <> wrote in message
    news:...
    >I have a web page with a GridView that displays data from a SqlDataSource
    >component.
    >
    > I need to allow the user to click a button and have this data delivered to
    > them in a .xls file that they can save to their local machine.
    >
    > Is the a way to do this with .NET or will I need a third party component?
    >
    > --
    > Best regards
    > Mark
    >
    Cowboy \(Gregory A. Beamer\), Sep 8, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?S2VpdGhSYWdpbkZAbmV3c2dyb3Vwcy5ub3NwYW0=

    Returning Excel Spreadsheet as web page

    =?Utf-8?B?S2VpdGhSYWdpbkZAbmV3c2dyb3Vwcy5ub3NwYW0=, Apr 23, 2004, in forum: ASP .Net
    Replies:
    10
    Views:
    2,718
    Steven Cheng[MSFT]
    May 6, 2004
  2. Luis Esteban Valencia
    Replies:
    0
    Views:
    2,490
    Luis Esteban Valencia
    Jan 6, 2005
  3. lds
    Replies:
    2
    Views:
    531
  4. lds
    Replies:
    0
    Views:
    433
  5. Horhayson

    Displaying an Excel spreadsheet in ASP page?

    Horhayson, Feb 2, 2005, in forum: ASP General
    Replies:
    3
    Views:
    135
    Tom Kaminski [MVP]
    Feb 2, 2005
Loading...

Share This Page