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. Visual Basic
  4. How freeze first row in excel by using EPPlus.dll ???

How freeze first row in excel by using EPPlus.dll ???

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
3 Posts 2 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
    Dharmesh S Patil
    wrote on last edited by
    #1

    How can i use freeze Pane for first row in excel by vb.net using EPPlus.dll for excel.

    Richard DeemingR 1 Reply Last reply
    0
    • D Dharmesh S Patil

      How can i use freeze Pane for first row in excel by vb.net using EPPlus.dll for excel.

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      From the ExcelWorksheet object, access the View property. On the returned ExcelWorksheetView object, call the FreezePanes(row, column) method, passing in the row and column of the first cell which is not frozen. For example, to freeze the first row, you would need to pass in 2 to the row parameter:

      sheet.View.FreezePanes(2, 1)

      One of the samples on the site demonstrates this: https://epplus.codeplex.com/SourceControl/latest#SampleApp/Sample6.cs[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      D 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        From the ExcelWorksheet object, access the View property. On the returned ExcelWorksheetView object, call the FreezePanes(row, column) method, passing in the row and column of the first cell which is not frozen. For example, to freeze the first row, you would need to pass in 2 to the row parameter:

        sheet.View.FreezePanes(2, 1)

        One of the samples on the site demonstrates this: https://epplus.codeplex.com/SourceControl/latest#SampleApp/Sample6.cs[^]


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        D Offline
        D Offline
        Dharmesh S Patil
        wrote on last edited by
        #3

        Thanks it's work :)

        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