Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
In this article, we will learn how to freeze panes. When you have a huge amount of data under a common heading, you cannot see the heading when you scroll down the worksheet. Each record contains many data fields. You can freeze panes so that you can see that frozen portion even when the rest of the data is being scrolled. You can easily see headers in the top rows or first columns. Freezing and unfreezing panes only changes the view of the data without changing the data itself.


As you can see, 1st row and column A are frozen; the second row is 32 and the second visible column is D.
Freeze panes let you view your large data without having to keep track of row or column labels.
It’s simple to freeze panes with Aspose.Cells for Node.js via C++. Please use the Worksheet.freezePanes(number, number, number, number) method to freeze panes at the selected cell.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Instantiate a new Workbook.
const workbook = new AsposeCells.Workbook(path.join(dataDir, "Freeze.xlsx"));
// Freezing panes at the cell B2
workbook.getWorksheets().get(0).freezePanes("B2", 1, 1);
// Saving the file
workbook.save("frozen.xlsx");
Attached sample source Excel file.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.