Bug 96597 - Respect disabled setting "display zero values" when printing and pdf export
Summary: Respect disabled setting "display zero values" when printing and pdf export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.0.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2015-12-19 14:30 UTC by Duncan Bellamy
Modified: 2021-09-12 13:44 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Spreadsheet that exhibits this (63.14 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-12-28 13:27 UTC, Duncan Bellamy
Details
The spreadsheet file for demonstrtion of the bug (10.88 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-09-12 13:43 UTC, Wolfgang Jäger
Details
The PDF made from the spreadsheet (27.99 KB, application/pdf)
2021-09-12 13:44 UTC, Wolfgang Jäger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Bellamy 2015-12-19 14:30:52 UTC
I have a monthly spreadsheet to calculate expenses and VAT, even when the spreadsheet is 'empty' it prints or exports enough blank pages to cover the range of rows that contain formula.  Even though the formula is not displaying a result.

I have tried the options in page formatting and calc formula but they make no difference.
Comment 1 Buovjaga 2015-12-22 21:29:55 UTC
Could you attach an example file (perhaps a reduced version of your monthly sheet)?

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 Duncan Bellamy 2015-12-28 13:27:44 UTC
Created attachment 121576 [details]
Spreadsheet that exhibits this
Comment 3 Buovjaga 2015-12-29 14:22:08 UTC
(In reply to Duncan Bellamy from comment #2)
> Created attachment 121576 [details]
> Spreadsheet that exhibits this

So how should we test the problem? I see H has rows with OK up to row 117. Do you mean we have to delete these OKs and see, how the printing behaves in relation to columns F and G, which have formulas?
Comment 4 Duncan Bellamy 2015-12-29 19:18:57 UTC
The ok column is non printing, so if you edit nothing and print preview it gives you 4 pages.
The first page has the totals info etc, the other pages just have the header and are otherwise blank.
Comment 5 Buovjaga 2015-12-29 19:45:47 UTC
Ok.. you have Options - Calc - View - Display - Zero values disabled for the document, so it isn't showing the 0s.

Adjusted summary and set to NEW.
Comment 6 Wolfgang Jäger 2021-09-12 13:09:40 UTC
(In reply to Buovjaga from comment #3)
> (In reply to Duncan Bellamy from comment #2)
> > Created attachment 121576 [details]
> > Spreadsheet that exhibits this
> 
> So how should we test the problem? I see H has rows with OK up to row 117.
> Do you mean we have to delete these OKs and see, how the printing behaves in
> relation to columns F and G, which have formulas?

This bug is about the PDF created by exporting. You would need to export (a sufficiently large part of the sheet) to PDF and open the created file i a pdf-viewer to see the bug. 

Since the example attached by the reporter is huge and its relation to the problem is unclear, I would suggest you look into the sheet attached to   https://ask.libreoffice.org/t/preserving-conditional-formatting-results-when-pasting-outside-of-libreoffice/68006, and export it (say sheet no 3) to PDF. Check rows 35 and down the odd rows to see the effect in a pdf reader.

Your suggestion in comment #5 
> Ok.. you have Options - Calc - View - Display - Zero values disabled for the
> document, so it isn't showing the 0s.

The evil settinng 
>Tools>Options>LibreOffice Calc>View>>Display>>>Zero values 
isn't a soulution for, but the cause of related problems. 

Since there is no hope that the option itself will be completely abandoned, a fix for this bug should actually be brought on the way.
Comment 7 Wolfgang Jäger 2021-09-12 13:43:59 UTC
Created attachment 174985 [details]
The spreadsheet file for demonstrtion of the bug
Comment 8 Wolfgang Jäger 2021-09-12 13:44:55 UTC
Created attachment 174987 [details]
The PDF made from the spreadsheet