Bildlaufleisten in Ruby anzeigen oder ausblenden

Aspose.Cells – Bildlaufleisten anzeigen oder ausblenden

Bildlaufleisten ausblenden

So blenden Sie Bildlaufleisten mit ausAspose.Cells Java für Rubin , AnrufBildlaufleisten ausblenden Modul.

Ruby-Code

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

\# Instantiating a Workbook object by excel file path

workbook = Rjb::import('com.aspose.cells.Workbook').new(data_dir + '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(data_dir + "output.xls")

puts "Scroll Bars are now hidden, please check the output file."

Bildlaufleisten sichtbar machen

Machen Sie Bildlaufleisten sichtbar, indem Sie die Methoden setVerticalScrollBarHidden() oder setHorizontalScrollBarHidden() der Klasse Workbook auf true setzen.

Ruby-Code

 # Displaying the vertical scroll bar of the Excel file

workbook.getSettings().setVScrollBarVisible(true)

\# Displaying the horizontal scroll bar of the Excel file

workbook.getSettings().setHScrollBarVisible(true)

Laufcode herunterladen

Download**Bildlaufleisten anzeigen oder ausblenden (Aspose.Cells)**von einer der unten genannten Social-Coding-Sites: