ASP to Excel. Help with getting data into XML

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP to Excel. Help with getting data into XML

    I have an ASP application that uses an Access back end, and basically
    I wanted to get the data into an Excel spreadsheet for reporting
    purposes. I decided to go down the XML route as that gives me good
    formatting options, and allows for multiple workbook pages, and all
    the users have Excel 2002. However I'm finding it quite tough.

    This guide from Microsoft
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;285891[/url]
    actually works well and I can understand what's going on, so I've used
    it as the basis of my code. However this only deals with a simple set
    of records filling a table. My output needs to be a little more
    complicated. I'd like to be able to pass several record sets into the
    final report rather than using just one very complicated SQL
    statement, is this possible? I'd also like to insert a couple of
    strings from ASP into the report, how can I do this? And I would like
    to cover several workbooks, can I just contain them in a
    <xsl:for-each… statement?

    If you need more clarification on the problem, or code snippets, then
    please just ask

    Many Thanks
    busabus Guest

  2. Similar Questions and Discussions

    1. Export to Excel has no Data
      It's a simple Datagrid export to Excel however, when I view the spreadsheet, its empty. Even the file size is zero. What could be causing this?
    2. Excel Data conversion
      Hello, I have to convert the (afaik) Excel (internal) date format into a different format. I am wondering if there is a package around to do so....
    3. asp display excel data
      I try to find the best small exemple to display data from excel to asp (connection & code). But only asp.net exemples in microsoft.com... Thanks...
    4. Importing Excel data
      On each import FM 5.5 crashes on the last record to import! e.g. dummy.xls contains of 21 records - FM crashes on the last ( 21st ) or takes...
    5. ADO data into web excel?
      Is it possible to write out the contents of a database into an exel-type spreadsheet within an asp page? - Jason
  3. #2

    Default Re: ASP to Excel. Help with getting data into XML

    Stick this at the top of the ASP page:

    <% Response.ContentType = "application/vnd.ms-excel" %>

    <html>
    <body>
    <table>
    <tr>
    <td>
    </td>
    </tr>
    </table>
    </body>
    </html>

    And then format the rest of the page with a table. This tag at the beginning
    will translate the page into an Excel Spreadsheet.

    --
    David Lozzi
    Associated Business & Technology Group
    [url]www.associatedbtg.com[/url]

    I should've known that....but I had a brain fart.
    "busabus" <drwhiting@hotmail.com> wrote in message
    news:358e222f.0308070547.160d558b@posting.google.c om...
    > I have an ASP application that uses an Access back end, and basically
    > I wanted to get the data into an Excel spreadsheet for reporting
    > purposes. I decided to go down the XML route as that gives me good
    > formatting options, and allows for multiple workbook pages, and all
    > the users have Excel 2002. However I'm finding it quite tough.
    >
    > This guide from Microsoft
    > [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;285891[/url]
    > actually works well and I can understand what's going on, so I've used
    > it as the basis of my code. However this only deals with a simple set
    > of records filling a table. My output needs to be a little more
    > complicated. I'd like to be able to pass several record sets into the
    > final report rather than using just one very complicated SQL
    > statement, is this possible? I'd also like to insert a couple of
    > strings from ASP into the report, how can I do this? And I would like
    > to cover several workbooks, can I just contain them in a
    > <xsl:for-each. statement?
    >
    > If you need more clarification on the problem, or code snippets, then
    > please just ask
    >
    > Many Thanks

    David Lozzi Guest

  4. #3

    Default Re: ASP to Excel. Help with getting data into XML

    Thanks for that David, it would be quite simply to work the record sets
    into html tables, however from my understanding this method doesn't
    support multiple worksheets which is required for the reports. If it
    does then please correct me and provide the syntax to achieve this.

    Thanks

    Daniel



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Daniel Whiting Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139