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. .NET (Core and Framework)
  4. Create A Excel file.

Create A Excel file.

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasecomquestion
4 Posts 4 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.
  • S Offline
    S Offline
    SamRST
    wrote on last edited by
    #1

    hi all, m working with some datas from database. i had all the datas in datatable. i want to export this datas to a Excel file. when i tried to add reference Microsoft.Office.Interop, i dont found the reference. bcose of this i cannot use Excel.Application class. Do any 1 have an idea ? Thanks in Advance..

    L F I 3 Replies Last reply
    0
    • S SamRST

      hi all, m working with some datas from database. i had all the datas in datatable. i want to export this datas to a Excel file. when i tried to add reference Microsoft.Office.Interop, i dont found the reference. bcose of this i cannot use Excel.Application class. Do any 1 have an idea ? Thanks in Advance..

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Do you have Excel installed on your local machine?

      I are troll :)

      1 Reply Last reply
      0
      • S SamRST

        hi all, m working with some datas from database. i had all the datas in datatable. i want to export this datas to a Excel file. when i tried to add reference Microsoft.Office.Interop, i dont found the reference. bcose of this i cannot use Excel.Application class. Do any 1 have an idea ? Thanks in Advance..

        F Offline
        F Offline
        FilipKrnjic
        wrote on last edited by
        #3

        Hi Sam, It could be that you haven't included Microsoft Excel 11.0 Object Library. But using Excel Automation is very complicated. Maybe you should try some 3rd party component. GemBox has .NET Excel component that makes programing with Excel in C# and VB much easier then Excel Automation. It also doesn't require you to have installed Microsoft Excel on computer that runs your application, it works with most spreadsheet files (xls,csv,xlsx,html) and it's free for commercial use if you need less then 150 rows. GemBox Software - .NET Components for Reading/Writing Excel files and Compound Document files

        1 Reply Last reply
        0
        • S SamRST

          hi all, m working with some datas from database. i had all the datas in datatable. i want to export this datas to a Excel file. when i tried to add reference Microsoft.Office.Interop, i dont found the reference. bcose of this i cannot use Excel.Application class. Do any 1 have an idea ? Thanks in Advance..

          I Offline
          I Offline
          Infarkt
          wrote on last edited by
          #4

          try this free library http://www.codeplex.com/ExcelExportLib[^]

          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