[Libreoffice-bugs] [Bug 128148] New: Mail merge: Fields in headers not correctly replaced if header only from page 2 on

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Oct 15 07:24:56 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128148

            Bug ID: 128148
           Summary: Mail merge: Fields in headers not correctly replaced
                    if header only from page 2 on
           Product: LibreOffice
           Version: 6.4.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: m.weghorn at posteo.de

Created attachment 155010
  --> https://bugs.documentfoundation.org/attachment.cgi?id=155010&action=edit
Sample file wither header on page 2

Mail merge to a single document doesn't correctly replace fields in
headers/footers if the first page doesn't have a header/footer, but following
ones do.

Steps to reproduce:

1) open attached sample document "header_from_page2_on.odt"
2) start mail merge wizard ("Tools" -> "Mail Merge Wizard")
3) click through the wizard and select to print a letter using any data source,
e.g. the attached ODS sheet
4) Click "Save Merged Documents" item in the mail merge toolbar
5) select "Save as a single large document" and "Save Document"
6) save and open the resulting file

Result: The header on the second page for every data set contains the text
"Page 2 of 8" (with fields being used).

Expected result: The header on the second page for every data should contain
the text "Page 2 of **2**" (since the printout for every recipient has only 2
pages)


Note: The sample document doesn't have a header in the page style for the first
page, but does have one for the pages style of the second page. It works as
expected if the first page also has a header (e.g. it is assigned the "Default
Style" as well).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191015/74f984aa/attachment-0001.html>


More information about the Libreoffice-bugs mailing list