mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #184] Question: set page number #149
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#149
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 30, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/184
Originally assigned to: @jmcnamara on GitHub.
I have multiple sheets in a workbook. The first sheet is a intro sheet. From second sheet onwards i set a footer displaying the page number.
I want the second sheet start its page numbering again at 1 when printing.
Can this be done using libxlsxwriter ?
@jmcnamara commented on GitHub (May 30, 2018):
Is that possible in Excel? If so how do you do it?
@petricf commented on GitHub (May 30, 2018):
In LibreOffice 6.x: Menu Format -> Page, Tab Table, Item "First pagenumber" (translated from german)
Excel (> 2010): See guide at this location
Excel 2010: See guide at this location
@jmcnamara commented on GitHub (May 30, 2018):
That parameter can be set in libxlsxwriter using the worksheet_set_start_page() function.
However, I don't think that does what you expect it to do. It just sets the first page that will be printed.
@jmcnamara commented on GitHub (Jun 1, 2018):
Any update on this?
@petricf commented on GitHub (Jun 1, 2018):
Actually tested it. worksheet_set_start_page indeed sets the starting page number used when the page numbers are assigned during printing process.
The current doc of this function seems misleading. I got the impression this function for example skips the first two pages when set to 3.
But the fact is (under LibreOffice) it prints still all pages.
My suggestion is to update the doc to clarify this.
For me this question is hereby solved.
@liufeijin commented on GitHub (Oct 4, 2018):
@jmcnamara commented on GitHub (Oct 4, 2018):
@liufeijin this feature request is ready to be closed. If you have an additional feature request then please start a new issue.
@jmcnamara commented on GitHub (Jul 11, 2021):
I've made the docs (hopefully) a bit clearer for this function. Closing.