Display or Hide Scroll Bars in Php

Aspose.Cells - Display or Hide Scroll Bars

Hiding Scroll Bars

To hide Scroll Bars using Aspose.Cells Java for PHP, call displayhidescrollbars module.

PHP Code

 //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");

Download Running Code

Download Display or Hide Scroll Bars (Aspose.Cells) from any of the below mentioned social coding sites: