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. Export to Excel and Microsoft Jet

Export to Excel and Microsoft Jet

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiosysadminwindows-admin
4 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.
  • B Offline
    B Offline
    biop codeproject
    wrote on last edited by
    #1

    I am given an ASP.NET project. There is a page with export to excel button. I am shown that the export to excel button works in a machine with office installed and visual studio installed. Now the project is moved to a new server. It has only IIS. The project works, but the export to excel does not work. I look at the connection string and find out it refers to Microsoft Jet. Could it be that I need to install Microsoft Jet to the new server?

    Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strNewPath & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=2"""

    R 1 Reply Last reply
    0
    • B biop codeproject

      I am given an ASP.NET project. There is a page with export to excel button. I am shown that the export to excel button works in a machine with office installed and visual studio installed. Now the project is moved to a new server. It has only IIS. The project works, but the export to excel does not work. I look at the connection string and find out it refers to Microsoft Jet. Could it be that I need to install Microsoft Jet to the new server?

      Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strNewPath & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=2"""

      R Offline
      R Offline
      Reza Ahmadi
      wrote on last edited by
      #2

      Hi, Provider=Microsoft.Jet.OLEDB is a driver and it exists in every machine which has .Net framework installed but in order to export to Excel the machine needs to have Office Excel installed.

      B 1 Reply Last reply
      0
      • R Reza Ahmadi

        Hi, Provider=Microsoft.Jet.OLEDB is a driver and it exists in every machine which has .Net framework installed but in order to export to Excel the machine needs to have Office Excel installed.

        B Offline
        B Offline
        biop codeproject
        wrote on last edited by
        #3

        May I assume that you mean the client machine needs to have Excel installed?

        R 1 Reply Last reply
        0
        • B biop codeproject

          May I assume that you mean the client machine needs to have Excel installed?

          R Offline
          R Offline
          Reza Ahmadi
          wrote on last edited by
          #4

          Absolutely no. The exportation occurs in the app server so I mean your server needs to have Excel installed.

          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