mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #472] Add support to set window size #368
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#368
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 @tomas789 on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/472
Originally assigned to: @jmcnamara on GitHub.
In Python version, there is a function
Workbook.set_sizeto set window size (link). It setswindowWidthandwindowHeightof theworkbookViewelement (as implemented here).There does not seem to be an support for this feature in the libxlsxwriter. The corresponding values in
_write_workbook_vieware hard-coded.I'd like to kindly ask for this feature to be implemented in this library too. I'm currently not able to contribute the PR myself.
@jmcnamara commented on GitHub (Feb 13, 2025):
I can add that.
Out of interest, what is your use case for this?
@tomas789 commented on GitHub (Feb 14, 2025):
I write summary report for my optimization system into excel files. That means I very often open new Excel files as opposed to working with one file. Probably like 50 files a day. And first thing I do with each of them is to resize it. And it quickly gets boring :)
@jmcnamara commented on GitHub (Feb 14, 2025):
Is that on macOS or some other OS?
@tomas789 commented on GitHub (Feb 14, 2025):
Yes. Mac.
@jmcnamara commented on GitHub (Feb 14, 2025):
I've pushed a fix for this to main. Please test it if you get a chance.
The interface is:
The docs are:
@jmcnamara commented on GitHub (Feb 19, 2025):
@tomas789 Did you try this?
@jmcnamara commented on GitHub (Feb 26, 2025):
This change is now upstream as part of release v1.2.1. Thanks for the input.