https://bugs.documentfoundation.org/show_bug.cgi?id=174450
Bug ID: 174450
Summary: Writer mail merge inserts an unwanted blank page
between sheets of Avery address labels
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
# Writer mail merge inserts an unwanted blank page between sheets of Avery
address labels
**Product:** LibreOffice
**Component:** Writer
**Version:** 26.8.2.2 (X86_64)
**Operating System:** Windows 11 (64-bit)
**Severity:** Normal
**Reproducibility:** Always
## Related issue
I am aware of LibreOffice Bug 138957 concerning automatically inserted blank
pages.
Although I cannot establish whether the underlying causes are connected, this
report may be relevant to the investigation of unwanted blank pages generated
during mail merge.
Please consider whether the two issues are related.
## Description
When performing a mail merge using an Avery L7160 address label template,
LibreOffice Writer inserts a completely blank page between each populated sheet
whenever the number of records exceeds the capacity of one sheet.
The Avery L7160 label format contains 21 labels per A4 sheet (3 columns × 7
rows).
The first sheet is generated correctly. However, whenever additional records
require Writer to generate another sheet, an unwanted blank page is inserted
between the populated sheets.
This behaviour has been reproduced consistently using dummy address data,
ruling out problems caused by particular address records.
## Steps to reproduce
1. Create an Avery L7160 label document in Writer using the Labels facility.
2. Set the label arrangement to 3 columns × 7 rows (21 labels per A4 sheet).
3. Enable Synchronize contents.
4. Connect the label document to an address list held in a Calc spreadsheet
(.ods).
5. Register the database connection (in this case, AddressDatabase.odb).
6. Populate the spreadsheet with dummy address records.
7. Select File → Print and confirm that the document is a form letter.
8. Perform the mail merge and select Save as single document.
9. Examine the resulting merged document in Print Preview.
## Actual results
The first sheet is generated correctly, but an entirely blank page is inserted
whenever another populated sheet is required.
The problem is reproducible with different numbers of records:
| Records | Result |
|---:|---|
| 1 | One correctly populated page |
| 20 | One correctly populated page |
| 21 | One correctly populated page |
| 22 | Two populated pages with one blank page between |
| 50 | Three populated pages with blank pages between them |
The blank pages appear in the merged document itself and are visible in Print
Preview.
## Expected results
Writer should generate consecutive populated sheets without inserting unwanted
blank pages.
For example:
- 21 records should produce one populated page.
- 22 records should produce two consecutive pages.
- 50 records should produce three consecutive pages.
## Additional information and tests
The original label template previews correctly as a single page. The unwanted
blank pages are introduced during the mail merge.
The following investigations have been carried out:
- Both the original template and merged document use the Default Page Style.
- Both use the same page layout settings.
- The label frames on the first and subsequent populated sheets have identical
dimensions, anchoring, positioning and wrapping properties.
- The corresponding MasterLabel sections have identical settings.
- The merged document contains the expected number of label frames on each
populated sheet.
- No active manual page break was identified in the paragraph Text Flow
settings.
- Disabling Tools → Options → LibreOffice Writer → Print → Print automatically
inserted blank pages does not remove the blank pages from Print Preview.
- The problem occurs with dummy data and is therefore not dependent on the
contents of individual address records.
The labels are individual frames created using Writer's Labels facility, rather
than ordinary table cells.
The original template does not contain any blank pages.
## Environment
LibreOffice 26.8.2.2 (X86_64), running on Windows 11.
The problem has been reproduced consistently using the standard Avery L7160
label arrangement and a Calc spreadsheet data source.
No personal address information is required to reproduce the problem.
## Summary
This appears to be a reproducible problem in Writer's mail-merge generation of
multi-sheet label documents. The first sheet is correct, but an unwanted blank
page is inserted whenever a subsequent sheet is generated.
Please investigate why additional label sheets cause an intervening blank page
to be created.
--
You are receiving this mail because:
You are the assignee for the bug.