mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 22:02:06 -06:00
[GH-ISSUE #182] Question: Change row/column width without changing format #150
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @petricf on GitHub (May 23, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/182
The functions worksheet_set_row and worksheet_set_column allow to change the width and height of the rows/columns.
But they always come with a lxw_format parameter.
The doc is not clear - passing NULL as lxw_format changes the formatting on all rows/columns to default ?
Or does it leave the formatting info as is ?
If the former applies - how to change the row/column size, but let the formatting info unchanged ?
@jmcnamara commented on GitHub (May 23, 2018):
A cell format will override a column or row format.
@petricf commented on GitHub (May 23, 2018):
But if the worksheet_set_row call comes AFTER a worksheet_write_* - which format parameter takes precedence ?
@jmcnamara commented on GitHub (May 24, 2018):
The order doesn’t matter the cell format still takes preference. This is Excel’s rule which is something like Cell > Row > Column.
Excel, the application, creates new formats at the intersection of Cell/Row/Column formats but that isn’t an automatic feature of the file format so libsxwriter users need to create and apply the intersection formats if required.