removing gridlines from excel using python

I'm trying to remove gridlines from excel worksheet which I created using openpyxl, and it's not working. I'm doing this:

wb = Workbook()   
ws = wb.get_active_sheet()
ws.show_gridlines = False
print ws.show_gridlines'file.xlsx')

The that code prints the 'False', yet the saved file shows gridlines.


There is a relevant issue in openpyxl issue tracker. Plus, according to the source code show_gridlines is just a worksheet class property that has no affect at all. Just watch the issue to get any update on it.

As an alternative solution, try the new and awesome xlsxwriter module. It has an ability to hide grid lines on a worksheet (see docs). Here's an example:

from xlsxwriter.workbook import Workbook

workbook = Workbook('hello_world.xlsx')
worksheet = workbook.add_worksheet()

worksheet.write('A1', 'Hello world')


Need Your Help

Disabling All Click Events from Greasemonkey doesn't work

javascript jquery greasemonkey sandbox

I'm trying to disable all click events on page from my Greasemonkey script using JQuery like this:

Shiny app run code to generate a pdf then offer that pdf to user for download

r shiny shinyapps

In my shiny app I want to be able to click a download button, have it execute a function I have (in a package) that creates a pdf in a /results folder, then offer that created file as a download to...