Last active
June 27, 2024 16:09
-
-
Save aspose-com-kb/86ebb6a7b04ad65da2eebcc2e48b05fd to your computer and use it in GitHub Desktop.
Freeze Panes in Excel using C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Aspose.Cells; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
new License().SetLicense("License.lic"); | |
// Instantiate a new Workbook. | |
Workbook workbook = new Workbook("Sample.xlsx"); | |
// Freezing panes at th cell B1 | |
workbook.Worksheets[0].FreezePanes("B1", 1, 1); | |
//workbook.Worksheets[0].UnFreezePanes(); | |
// Saving the file | |
workbook.Save("frozen.xlsx"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment