在 Php 中隐藏或取消隐藏工作表
Contents
[
Hide
]
Aspose.Cells - 隐藏或取消隐藏工作表
隐藏工作表
要使用 Aspose.Cells Java for PHP 隐藏工作表,请调用隐藏取消隐藏工作表模块。
PHP代码
//Instantiating a Workbook object by excel file path
$workbook = new Workbook($dataDir . "book1.xls");
//Accessing the first worksheet in the Excel file
$worksheets = $workbook->getWorksheets();
$worksheet = $worksheets->get(0);
//Hiding the first worksheet of the Excel file
$worksheet->setVisible(false);
//Saving the modified Excel file in default (that is Excel 2003) format
$workbook->save($dataDir . "output.xls");
下载运行代码
下载**隐藏或取消隐藏工作表 (Aspose.Cells)**来自以下任何社交编码网站: