Bug 166601 - Export to PDF is exporting wrong sheet
Summary: Export to PDF is exporting wrong sheet
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-15 18:51 UTC by katie
Modified: 2025-05-20 21:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
A calc spreadsheet with four sheets (31.81 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-05-15 23:38 UTC, katie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description katie 2025-05-15 18:51:00 UTC
Description:
In one of my Libreoffice Calc documents, when I select "Export as PDF" the last sheet in a document is exported every time, even when I have the sheet I want to export selected. The only way I can export the right sheet is to delete the last sheet altogether. This is not happening in other documents with multiple sheets.

Steps to Reproduce:
1. My document has four sheets.
2. When I select "Export as PDF" it only exports the fourth sheet, even if I have the first sheet selected.
3. I can only export the first sheet if I delete the fourth sheet

Actual Results:
The last sheet is exported

Expected Results:
The software should only export the current selected sheet.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.6.2 (X86_64) / LibreOffice Community
Build ID: 6d98ba145e9a8a39fc57bcc76981d1fb1316c60c
CPU threads: 6; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL threaded
Comment 1 m_a_riosv 2025-05-15 22:01:58 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode

Please attach a sample file, reduce the size as much as possible without private information, 
and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 2 katie 2025-05-15 23:38:23 UTC
Created attachment 200839 [details]
A calc spreadsheet with four sheets
Comment 3 m_a_riosv 2025-05-16 22:25:18 UTC
Seems it is because the last is the only one with a range to print selected.

Fix the Menu>Format>Print ranges for every sheet and so it works fine.

In any case, looks like a bug as it works.

Version: 25.2.3.1 (X86_64) / LibreOffice Community
Build ID: d8d1af5f77df955194e52baabe19324532ac8e8b
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (es_ES); UI: en-US
Calc: CL threaded


Inherited from OOo
Comment 4 katie 2025-05-20 18:40:33 UTC
Thank you so much for your expertise. Not a bug, just a user error. So much appreciated!