在 Php 中显示或隐藏滚动条

Aspose.Cells - 显示或隐藏滚动条

隐藏滚动条

隐藏滚动条使用Aspose.Cells Java for PHP, 称呼显示隐藏滚动条模块。

PHP代码

 //Instantiating a Excel object by excel file path

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

//Hiding the vertical scroll bar of the Excel file

$workbook->getSettings()->setVScrollBarVisible(false);

//Hiding the horizontal scroll bar of the Excel file

$workbook->getSettings()->setHScrollBarVisible(false);

//Saving the modified Excel file in default (that is Excel 2003) format

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

下载运行代码

下载**显示或隐藏滚动条 (Aspose.Cells)**来自以下任何社交编码网站: