Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Alanscut
Copy link
Member

@Alanscut Alanscut commented Feb 4, 2020

Changes:

  • showGridLines is not in properties, but in pageSetup and views
// showGridLines will not work
var sheet = workbook.addWorksheet('My Sheet', {properties: {showGridLines: false}});

it should be set like this:

// create a sheet where the grid lines are hidden when opening it
var sheet = workbook.addWorksheet('My Sheet', {views: [{showGridLines: false}]});

or

// create a sheet where the grid lines are hidden when printing it
var sheet = workbook.addWorksheet('My Sheet', {pageSetup: {showGridLines: false}});
  • some typos


// create a sheet where the grid lines are hidden
var sheet = workbook.addWorksheet('My Sheet', {properties: {showGridLines: false}});
var sheet = workbook.addWorksheet('My Sheet', {views: [{showGridLines: false}]});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alubbe alubbe merged commit 344382c into exceljs:master Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants