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. Export To Excel Advanced

Export To Excel Advanced

Scheduled Pinned Locked Moved C#
csharpcom
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.
  • D Offline
    D Offline
    DJCRIS12
    wrote on last edited by
    #1

    http://i287.photobucket.com/albums/ll145/_DJ_CRIS_08_/prog.jpg[^] Here is a picture of my app, as you know i want to export selected columns to an excel file, but if theres another easy way to create a report please let me know, sorry about this i'm not an expert of C#. :(

    L R I 3 Replies Last reply
    0
    • D DJCRIS12

      http://i287.photobucket.com/albums/ll145/_DJ_CRIS_08_/prog.jpg[^] Here is a picture of my app, as you know i want to export selected columns to an excel file, but if theres another easy way to create a report please let me know, sorry about this i'm not an expert of C#. :(

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

      DJCRIS12 wrote:

      as you know i want to export selected columns to an excel file, but if theres another easy way to create a report please let me know

      I didn't know. The simplest way of creating a report is by exporting it as text. The second simplest way is to export is as HTML. Excell accepts a lot of weird formats; you could save your file as "comma separated values", as HTML/XML and as their native format. I'd recommend the CSV-version, as that would be the most simple to achieve.

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • D DJCRIS12

        http://i287.photobucket.com/albums/ll145/_DJ_CRIS_08_/prog.jpg[^] Here is a picture of my app, as you know i want to export selected columns to an excel file, but if theres another easy way to create a report please let me know, sorry about this i'm not an expert of C#. :(

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

        I agree with Eddy. I'd go for a CSV format because it's supported by other spreadsheet applications and requires no dependency on Excel. If you do go with Excel also be aware that if it crashes you can start creating new instances. Unless handled properly. Depending on where you are, you're also going to have to change the regional settings to US and back again to avoid exceptions.

        "You get that on the big jobs."

        1 Reply Last reply
        0
        • D DJCRIS12

          http://i287.photobucket.com/albums/ll145/_DJ_CRIS_08_/prog.jpg[^] Here is a picture of my app, as you know i want to export selected columns to an excel file, but if theres another easy way to create a report please let me know, sorry about this i'm not an expert of C#. :(

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

          I use ExcelLibrary which can be downloaded from Google code

          License is GNU LGPL.

          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