Calc Scenarios Export to PDF creates extra pages with Scenario fields

Calc Scenarios Export to PDF creates extra pages with Scenario fields

I have a calc spreadsheet that uses scenarios (under: Tools / Scenarios). Also, the footer has page numbers. When I export the spreadsheet to PDF (via File / Export as PDF), Calc creates the PDF file with an extra page for each scenario. It also numbers the pages so that the scenario pages are also counted (the “Total Pages” number is wrong / too high). So, instead of getting “Page 1 of 5”, Calc creates “Page 1 of 25” (when there are 20 Scenarios).

I can delete the unwanted scenario pages in the PDF file, but the incorrect page numbers cannot be fixed. Is this a bug, or is there a way to prevent Calc from creating additional pages for the Scenarios?

Please what is your LibreOffice version?

LibreOffice 4.4.3.2 (“Fresh” branch) (on Windows 7)

Hi

Creating sheets by the Scenario tool is not a bug but normal feature, even if you uncheck the options Copy backand Copy Entire sheet when created (these sheets are hidden by default).

To not print (or export) just set their print area to None: Format Print Ranges Edit Print Range: - None -
Total of pages is updated accordingly.

Regards

All of my Scenarios have “Copy entire sheet” deselected. Therefore, I consider printing/exporting sheets I had chosen to not create a bug.

How do I set the Print Area for the unwanted (hidden) sheets to None? Under Format / Print Ranges / Edit, all I see there is the print range I had defined (basically the part of the Sheet that I want, and Rows & Columns to repeat).

How can I unhide/show these hidden sheets?

OK, I found where to unhide these secretly created unwanted hidden sheets:

  1. Right-Click on the Sheets Tab-bar at the bottom,
  2. Select “Show…” from the Context Menu, and then Shift+select or Ctrl-select all needlessly created hidden Sheets.
  3. Then select each Sheet and select Data / Print Ranges / Clear (yes, you have to do each one separately).

Not a bug my a$$.

Sorry I should have specified how to show these sheets… but you found all alone, well done.
Another clarification: you can select multiple sheets and do Format Print Ranges

I did try to select multiple sheets and selecting Format / Print Ranges, but the “Clear” Menu-item was not selectable (possibly because one of the sheets already had no Print Range… But which one? Back to doing each one separately…). I still consider LibreOffice’s behavior here unwanted (aka a bug).

Yes… that’s why I indicated to do Format Print Ranges Edit (not Clear)