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. General Programming
  3. C#
  4. How to Export an Excel (xls) document that's compatible to all office versions - C#

How to Export an Excel (xls) document that's compatible to all office versions - C#

Scheduled Pinned Locked Moved C#
csharpcomtutorialquestionannouncement
4 Posts 3 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.
  • O Offline
    O Offline
    OhrmaZd
    wrote on last edited by
    #1

    Hi everyone. I have created an application that exports a new xls document, I did that using the com component "Microsoft Excel 9.0 object library" but of course that made my application dependant to this library. That shouldn't work on another client machine that don't have this version of Excel installed. How can i make an application independent from my office. I mean it should be compatible with 'ALL' excel versions any idea how to do this. and forget about the 'csv' format. thanks

    O D 2 Replies Last reply
    0
    • O OhrmaZd

      Hi everyone. I have created an application that exports a new xls document, I did that using the com component "Microsoft Excel 9.0 object library" but of course that made my application dependant to this library. That shouldn't work on another client machine that don't have this version of Excel installed. How can i make an application independent from my office. I mean it should be compatible with 'ALL' excel versions any idea how to do this. and forget about the 'csv' format. thanks

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      http://blogs.iis.net/carlosag/archive/2005/08/27/Generating-Excel-Workooks-without-Excel.aspx[^]

      1 Reply Last reply
      0
      • O OhrmaZd

        Hi everyone. I have created an application that exports a new xls document, I did that using the com component "Microsoft Excel 9.0 object library" but of course that made my application dependant to this library. That shouldn't work on another client machine that don't have this version of Excel installed. How can i make an application independent from my office. I mean it should be compatible with 'ALL' excel versions any idea how to do this. and forget about the 'csv' format. thanks

        D Offline
        D Offline
        DavieL
        wrote on last edited by
        #3

        Hi, Im convinced i did this many years ago, but I cant find the code. I did find this on Google Groups tho' You can use the Microsoft OLE BD provider for Jet to dynamically create an Excel workbook. Specifying a non-existent but valid path, workbook name and Excel 'table' in a SELECT..INTO query results in it being created. Hope this helps David

        O 1 Reply Last reply
        0
        • D DavieL

          Hi, Im convinced i did this many years ago, but I cant find the code. I did find this on Google Groups tho' You can use the Microsoft OLE BD provider for Jet to dynamically create an Excel workbook. Specifying a non-existent but valid path, workbook name and Excel 'table' in a SELECT..INTO query results in it being created. Hope this helps David

          O Offline
          O Offline
          OhrmaZd
          wrote on last edited by
          #4

          thank you guys, I think both of your suggests might work, but the first one looks like used in a web app, and the second one is cool. Though i haven't tried any. Coz I think i found what i wanted, http://support.microsoft.com/kb/302902/[^] go to 'late binding', it's working for now, there's the test stuff later.but so far it worked on two workstations with MSoffice 2003 and the other 2000. Thanks a lot for your help though, and i might use one of these methods if the current one fails, if not it's still good knowledge for me and ppl who might face such problems. thanks

          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