Bug 117236 - Base: Page Number in footer of report generates blank pages.
Summary: Base: Page Number in footer of report generates blank pages.
Status: RESOLVED DUPLICATE of bug 100477
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.0.3.2 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2018-04-25 19:48 UTC by twisterddfsl83823
Modified: 2018-04-27 15:09 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Quickly created test case. (8.66 KB, application/vnd.sun.xml.base)
2018-04-25 19:52 UTC, twisterddfsl83823
Details
Example results from testcase (12.04 KB, application/vnd.oasis.opendocument.text)
2018-04-25 19:53 UTC, twisterddfsl83823
Details
scrn shot, report output prior to saving the odt file (246.16 KB, image/png)
2018-04-25 20:37 UTC, Drew Jensen
Details
Same report displayed in last attachment, after save (11.65 KB, application/vnd.oasis.opendocument.text)
2018-04-25 20:41 UTC, Drew Jensen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description twisterddfsl83823 2018-04-25 19:48:01 UTC
Description:
I have a report that generates 3 pages.
If I add in the footer a "Page x of xx" (ex Page 1 of 3) it will then become 6 pages long, with 3 empty pages at the end that only contain the footer.



Steps to Reproduce:
0. Have a table full of enough data that it will generate more than 1 page of reports.
1. Create a dynamic report in base using wizard.
2. Insert -> Page number -> Page x of m -> Footer
3. Execute Report

Actual Results:  
Had several pages that contained only a footer tacked on the end.  The more pages of data, the more blank pages added to the end.

Expected Results:
I expected the footer to not generate empty pages.


Reproducible: Always


User Profile Reset: No



Additional Info:
I did look at the output results, and the blank pages are truly blank other than the footer.  Editing the genrated document, all it takes is to delete the footer and suddenly the document jumps from 6 pages to 3 pages... all the blank pages disapear.


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 twisterddfsl83823 2018-04-25 19:52:38 UTC
Created attachment 141634 [details]
Quickly created test case.

What's weird is if I edit the memo area in this randomly generated report, the blank pages "might" not appear in the generated report.
Comment 2 twisterddfsl83823 2018-04-25 19:53:20 UTC
Created attachment 141635 [details]
Example results from testcase

The results of the report on my computer.
Comment 3 Drew Jensen 2018-04-25 20:35:53 UTC
The report when it is run and displayed, but not saved as a separate odt file, shows 24 pages with the last 10 of those blank except for the footer.
When the generated report is saved it changes to 14 pages with no blank pages at the end.

The behavior happened on all three versions of Libo tested.

Tested with:
Version: 5.4.6.2
Build ID: 1:5.4.6-0ubuntu0.17.10.1
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group

Version: 6.0.5.0.0+
Build ID: e58dc868a6ac0df24adf88f32f90a9e4fc6fdae9
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-6-0, Time: 2018-04-19_23:23:40
Locale: en-US (en_US.UTF-8); Calc: group

Version: 6.1.0.0.alpha0+
Build ID: fcba22ef7959d3bf0c7f3fc02434a120e3d8c075
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-04-24_23:08:46
Locale: en-US (en_US.UTF-8); Calc: group
Comment 4 Drew Jensen 2018-04-25 20:37:42 UTC
Created attachment 141636 [details]
scrn shot, report output prior to saving the odt file

Initially the report is displayed with 10 blank pages at the end. Screen shot from version 5.4.6.2
Comment 5 Drew Jensen 2018-04-25 20:41:17 UTC
Created attachment 141637 [details]
Same report displayed in last attachment, after save

And when the report is saved, it losses the 10 blank pages at the end.
Comment 6 Robert Großkopf 2018-04-26 11:08:51 UTC
Couldn't confirm this behavior for
Version: 5.0.4.2
Build-ID: 2b9802c1994aa0b7dc6079e128979269cf95bc78
(Windows 32bit)
So this seems to be a regression.
Comment 7 Alex Thurgood 2018-04-26 13:26:28 UTC
This behaviour is similar to an already reported bug (about blank pages being added to the end of a report), but I don't remember whether or not that was fixed, or is still open.
Comment 8 Alex Thurgood 2018-04-26 13:30:04 UTC
OK, so the same effect appears to be produced by different circumstances in bug 100477, which has been bisected, but unfortunately, not yet fixed.
Comment 9 Xisco Faulí 2018-04-27 15:09:26 UTC
Regression introduced by 7a1c1699a61a77d0228417da9922812c9b893b9d which is the same commit as in bug 100477.
Closing as RESOLVED DUPLICATED

*** This bug has been marked as a duplicate of bug 100477 ***