Description: I have two pages and the second page has just one protected+hidden cell. The cell is only visible on screen, not in the PrintOut/Preview. When i look at PrintPreview or actually print it i get empty pages. Steps to Reproduce: 1. create a new document 2. enter text in a cell on page 2 3. activate cell protection, do not print Actual Results: Preview/PrintOut prints an empty page 2 Expected Results: Page 2 is empty so should not be printed at all Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.4.2.3 / LibreOffice Community Build ID: 40(Build:3) CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: qt5 (qfont+xcb) Locale: de-DE (de_DE.UTF-8); UI: de-DE Ubuntu package version: 1:7.4.2~rc3-0ubuntu0.20.04.1~lo1 Calc: threaded
Please attach a sample file, I think there is a other way to test what happens.
Created attachment 184619 [details] Hidden a cell on Page TWO Hidden a cell on Page TWO, Print Preview prints two pages.
With your sample file, I can only view one page, on Print preview/Print. Version: 7.4.4.2 (x64) / LibreOffice Community Build ID: 85569322deea74ec9134968a29af2df5663baa21 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: es-ES (es_ES); UI: en-US Calc: CL And the 'Menu/Tools/Options/LibreOffice Calc/Print - Pages - Suppress output of empty pages' doesn't change the behavior.
Document has set the "Page TWO" on the first page in the attached document. So I couldn't see a second page. If I copy and paste "Page TWO" to the second page (starts here with row 54 (A 54), put it to row 57 (A 57) I could reproduce the bug: Second empty page will be shown. Suppressing to print empty pages is set by default and doesn't change the behavior. Bug appears here with LO 7.4.4.2, also LO 7.5.0.1. It will also appear in every LO 7-version, also tested with LO 6.4.7.2 Tested with OpenSUSE 15.3 64bit rpm Linux.
(In reply to Robert Großkopf from comment #4) > ... But looks to me, that the issue it's with the option Menu/Tools/Options/LibreOffice Calc/Print - Pages - Suppress output of empty pages not working properly when enabled, and hidden cells makes a blank page. Adding a third page with text a deleting 'Page TWO' text, don't show page two.
Created attachment 184641 [details] First page with normal cell, second page empty (hidden cell), third page with normal cell There will appear 3 pages here - also the empty page. But the printer is set in the options to suppress empty pages.
If I remove the hidden cell the page won't be shown, if suppressing empty pages will be enabled. So hidden cells seems to be like content on the page for printing - but it shouldn't, because it isn't visible.