Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Is there an easy wat to create an *.xls file on the c:\Drive from a dataset

Is there an easy wat to create an *.xls file on the c:\Drive from a dataset

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robmays
    wrote on last edited by
    #1

    I want to create the file so as i can send it as an email attachment?

    M 1 Reply Last reply
    0
    • R robmays

      I want to create the file so as i can send it as an email attachment?

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, Basically, the excel file can be saved as the xml spreadsheet,so IMO you can provide a simple xsl template and use the XslTransform to transform data saved in the dataset and produce the excel file. You can download the xml schema of the Excel from here[^].

      R 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, Basically, the excel file can be saved as the xml spreadsheet,so IMO you can provide a simple xsl template and use the XslTransform to transform data saved in the dataset and produce the excel file. You can download the xml schema of the Excel from here[^].

        R Offline
        R Offline
        robmays
        wrote on last edited by
        #3

        the download is not available do you have the full address

        M 1 Reply Last reply
        0
        • R robmays

          the download is not available do you have the full address

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          robmays wrote:

          the download is not available do you have the full address

          http://www.microsoft.com/downloads/details.aspx?FamilyId=FE118952-3547-420A-A412-00A2662442D9&displaylang=en I've just tried and it is working.

          R 1 Reply Last reply
          0
          • M minhpc_bk

            robmays wrote:

            the download is not available do you have the full address

            http://www.microsoft.com/downloads/details.aspx?FamilyId=FE118952-3547-420A-A412-00A2662442D9&displaylang=en I've just tried and it is working.

            R Offline
            R Offline
            robmays
            wrote on last edited by
            #5

            we are not on office 2003 yet and it seems a lot of work to get an excel file all i am after is to take the rows in a datagrid and email to a receipient

            M 1 Reply Last reply
            0
            • R robmays

              we are not on office 2003 yet and it seems a lot of work to get an excel file all i am after is to take the rows in a datagrid and email to a receipient

              M Offline
              M Offline
              minhpc_bk
              wrote on last edited by
              #6

              OK, you can use the html format, more exactly the table html element, to save the rows. You can export the entire datagrid to an excel file, clikety[^], or you can take some data and save it in the html format using the table tag with the .xls extension.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups