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. Asp.net Excel Interop

Asp.net Excel Interop

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcom
7 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.
  • M Offline
    M Offline
    mithun narayanan
    wrote on last edited by
    #1

    I am using interop for creating excel .. i ve cretaed the excel file. Now i need to hide or delete some of the columns.... Can u plz tell me the code for that... Thanks in Regardss....

    L C 3 Replies Last reply
    0
    • M mithun narayanan

      I am using interop for creating excel .. i ve cretaed the excel file. Now i need to hide or delete some of the columns.... Can u plz tell me the code for that... Thanks in Regardss....

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

      Instead of creating Excel u can create XML and that xml u can open with Excel. and jo will easier to add and delete from Excel Thanks, Amit

      J 1 Reply Last reply
      0
      • M mithun narayanan

        I am using interop for creating excel .. i ve cretaed the excel file. Now i need to hide or delete some of the columns.... Can u plz tell me the code for that... Thanks in Regardss....

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

        Do some experimentation yourself. Although I am not an expert in Excel Automation, I remember something like Worksheets[0].Columns collection.

        M 1 Reply Last reply
        0
        • M mithun narayanan

          I am using interop for creating excel .. i ve cretaed the excel file. Now i need to hide or delete some of the columns.... Can u plz tell me the code for that... Thanks in Regardss....

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          How are you using Excel with ASP.NET ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          M 1 Reply Last reply
          0
          • L Lost User

            Do some experimentation yourself. Although I am not an expert in Excel Automation, I remember something like Worksheets[0].Columns collection.

            M Offline
            M Offline
            mithun narayanan
            wrote on last edited by
            #5

            Thanks for the Reply..... I have found the solution.... for hiding first column Excel.Range rangen2 = oSheet.get_Range(oSheet.Cells[5, 4]); rangen2.EntireColumn.Hidden = true; :thumbsup:

            1 Reply Last reply
            0
            • C Christian Graus

              How are you using Excel with ASP.NET ?

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              M Offline
              M Offline
              mithun narayanan
              wrote on last edited by
              #6

              Thanks for the Reply..... I have found the solution.... for hiding first column Excel.Range rangen2 = oSheet.get_Range(oSheet.Cells[5, 4]); rangen2.EntireColumn.Hidden = true;

              1 Reply Last reply
              0
              • L Lost User

                Instead of creating Excel u can create XML and that xml u can open with Excel. and jo will easier to add and delete from Excel Thanks, Amit

                J Offline
                J Offline
                jonesberyl
                wrote on last edited by
                #7

                Besides the XML there is a c# excel component Spire.XLS,it can creating Excel .

                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