在 Php 中显示或隐藏网格线

Aspose.Cells - 显示或隐藏网格线

隐藏网格线

使用隐藏工作表Aspose.Cells Java for PHP, 称呼显示隐藏网格线模块。

PHP代码

 data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'

//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 grid lines of the first worksheet of the Excel file

$worksheet->setGridlinesVisible(false);

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

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

下载运行代码

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