Freeze Panes in PHP

Aspose.Cells - Freeze Panes

To freeze panes in a spreadsheet document using Aspose.Cells Java for PHP, simply invoke the FreezePanes method.

PHP Code

 //Instantiating an Excel object by Excel file path

$workbook = new Workbook($dataDir . "book.xls");

//Accessing the first worksheet in the Excel file

$worksheets = $workbook->getWorksheets();

$worksheet = $worksheets->get(0);

//Applying freeze panes settings

$worksheet->freezePanes(3,2,3,2);

//Saving the modified Excel file in default format

$workbook->save($dataDir . "book.out.xls");

Download Running Code

Download Freeze Pans (Aspose.Cells) from any of the below mentioned social coding sites: