Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To hide gridlines in a worksheet using Aspose.Cells for Python via Java, call the displayHideGridlines module.
Python Code
workbook = self.Workbook(self.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 the default (that is Excel 2000) format
workbook.save(self.dataDir + "output.xls")
# Print message
print "Grid lines are now hidden on sheet 1, please check the output document."To make gridlines visible, use the Worksheet class’s setGridlinesVisible(true) method.
Python Code
# Displaying the gridlines of the worksheet
worksheet.setGridlinesVisible(True)Download DisplayHideGridlines (Aspose.Cells) from any of the below‑mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.