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. Check Header in Excel

Check Header in Excel

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

    hi all, im doing this project using c# and asp.net in visual studio. one question here, i needed to check if it is the Header of the excel sheet telly my heading. (how to read and check the excel heading from the first row?) -- will do a check like.. A1 = code , B1 = name, C1 = Department eg. Excel: | Code | name | Department | thanks! :-O =D

    J A 2 Replies Last reply
    0
    • D drawmylyfe

      hi all, im doing this project using c# and asp.net in visual studio. one question here, i needed to check if it is the Header of the excel sheet telly my heading. (how to read and check the excel heading from the first row?) -- will do a check like.. A1 = code , B1 = name, C1 = Department eg. Excel: | Code | name | Department | thanks! :-O =D

      J Offline
      J Offline
      JeremH
      wrote on last edited by
      #2

      hi can you give a few code to help you but i think if you know where are your informations you can use : worksheet.Cells[row, col]

      jere

      D 1 Reply Last reply
      0
      • J JeremH

        hi can you give a few code to help you but i think if you know where are your informations you can use : worksheet.Cells[row, col]

        jere

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

        oh.. i use oledb connection to read..

        string srcConnString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+ sourceFile + @";Extended Properties=""Excel 8.0;HDR=NO;""";

        string srcQuery = "Select * from [" + GetExcelSheetNames( sourceFile)[0] + "]";

        :)

        1 Reply Last reply
        0
        • D drawmylyfe

          hi all, im doing this project using c# and asp.net in visual studio. one question here, i needed to check if it is the Header of the excel sheet telly my heading. (how to read and check the excel heading from the first row?) -- will do a check like.. A1 = code , B1 = name, C1 = Department eg. Excel: | Code | name | Department | thanks! :-O =D

          A Offline
          A Offline
          ag46677
          wrote on last edited by
          #4

          hi... can you explain your question in detail way . so that I can give you some more inputs.

          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