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,