Bug 147238 - FILEOPEN XLSX Apache poi setLandscape(true) option ignored
Summary: FILEOPEN XLSX Apache poi setLandscape(true) option ignored
Status: NEW
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: https://ask.libreoffice.org/t/why-doe...
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: XLSX
  Show dependency treegraph
 
Reported: 2022-02-07 05:42 UTC by -- removed --
Modified: 2022-12-08 12:44 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The worksheet is landscape orientation in MS office, but the same worksheet is portrait orientation in Libre Office. (8.74 KB, application/haansoftxlsx)
2022-02-07 05:43 UTC, -- removed --
Details

Note You need to log in before you can comment on or make changes to this bug.
Description -- removed -- 2022-02-07 05:42:25 UTC
Description:
I wanted to change excel page orientation to horizontal(landscape), so I used apache poi method PrintSetup.setLandscape(true).
Unfortunetly It seems not working approprietly in Libre office, though I can see it right in MS Office.
The settings show that Landscape option is selected, but right picture shows portrait.
What LibreOffice show you and what LibreOffice’settings have are different.
I don’t know how to resolve it.
I will take any advice appreciate. Thank you.

When the file is opened in Libre Office and MS Office,

https://ask.libreoffice.org/uploads/asklibo/optimized/3X/5/3/53cc54c0353e5d3a217db5e14abc82526f31fbae_2_473x500.png

Steps to Reproduce:
1. Using Apahe Poi XSSF PrintSetup setLandscape(true), set excel file's page orientation to landscape
2.Open this excel file in MS Office and Libre Office.
3.See this in page preview mode and check page style.

Actual Results:
The worksheet is landscape orientation in MS office, but the same worksheet is portrait orientation in Libre Office.

Expected Results:
The worksheet has to be landscape orientation when it was opened in Libre Office.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 8; OS: Windows 10.0 Build 19043;
UI render: Skia/Vulkan; VCL: win
Locale: ko-KR (ko_KR); UI: ko-KR
Calc: CL
Comment 1 -- removed -- 2022-02-07 05:43:10 UTC
Created attachment 178106 [details]
The worksheet is landscape orientation in MS office, but the same worksheet is portrait orientation in Libre Office.
Comment 2 Vladimir Sokolinskiy 2022-02-07 10:41:02 UTC
Problem with custom paper size. When opened in LO, the page orientation is landscape. If in LO you change the paper size to, for example, A4, then everything is displayed correctly.
Comment 3 Buovjaga 2022-12-08 12:44:38 UTC
Confirmed. Already in 3.3.0 on Win 10.

Arch Linux 64-bit
Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 705b2924a14841883b4a8cac549f7af326d7a185
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded Jumbo
Built on 8 December 2022