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. Generating Excel Reports in ASP .NET 2.0

Generating Excel Reports in ASP .NET 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpcomasp-nethelp
3 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.
  • K Offline
    K Offline
    kenexcelon
    wrote on last edited by
    #1

    I'm trying to work with Excel objects in C# for ASP .NET 2.0. I am receiving the following error: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC at Microsoft.Office.Interop.Excel.Sheets.Add( I am trying to follow the article here but it is in Visual Basic. The .Add function does not include any parameters but in C#, it seems I must pass the 4 parameters. (Object before, object after, count, and object type). The article for reference is at: Generating Excel Reports in ASP .NET 2.0[^] Unfortunately, I will not be able to post any code, but does anyone know of any good articles on how to work with excel to generate spreadsheet that is generated from data and then the chart added in C#? Thanks

    V 1 Reply Last reply
    0
    • K kenexcelon

      I'm trying to work with Excel objects in C# for ASP .NET 2.0. I am receiving the following error: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC at Microsoft.Office.Interop.Excel.Sheets.Add( I am trying to follow the article here but it is in Visual Basic. The .Add function does not include any parameters but in C#, it seems I must pass the 4 parameters. (Object before, object after, count, and object type). The article for reference is at: Generating Excel Reports in ASP .NET 2.0[^] Unfortunately, I will not be able to post any code, but does anyone know of any good articles on how to work with excel to generate spreadsheet that is generated from data and then the chart added in C#? Thanks

      V Offline
      V Offline
      vasini
      wrote on last edited by
      #2

      Hi, Can you give little more information? Are you sending the data which is in grid to excel file? If so, I have code which exports to .CSV file from a gridview... If your question is the same, I can share the code for you. Thanks...

      A 1 Reply Last reply
      0
      • V vasini

        Hi, Can you give little more information? Are you sending the data which is in grid to excel file? If so, I have code which exports to .CSV file from a gridview... If your question is the same, I can share the code for you. Thanks...

        A Offline
        A Offline
        Abhisek Chakraborty
        wrote on last edited by
        #3

        Yes. My problem is the same. If possible, please share the code with me. My email id is abhisek.ch84@gmail.com.

        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