Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • O openpyxl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 282
    • Issues 282
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to a massive storm of spam, registration on this instance now requires explicit administrator approval. Sorry for the added friction, we're also looking into automatic filtering options.

  • openpyxl
  • openpyxl
  • Merge requests
  • !6

enable setting row height on rows without cell values

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Bitbucket Importer requested to merge bitbucket/merged-pr-6 into branch/2.1 Jul 21, 2014
  • Overview 3
  • Commits 2
  • Pipelines 0
  • Changes 4

Created originally on Bitbucket by Former user

Was already merged in Bitbucket before import, marked as merged by the import user

If a row does not have any cells with values, openpyxl fails to set the row height.

In this example only row 1 gets height 50:

from openpyxl import Workbook
wb = Workbook()
ws = wb.get_active_sheet()
ws.cell('A1').value = "test"
ws.row_dimensions[ws.cell('A1').row].height = 50
ws.row_dimensions[ws.cell('B2').row].height = 50
wb.save("test.xlsx")
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bitbucket/merged-pr-6