Bug 165686 - Selecting a different printer in Print dialog, Automatic mode does not follow page orientation of the document
Summary: Selecting a different printer in Print dialog, Automatic mode does not follow...
Status: RESOLVED DUPLICATE of bug 162748
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.5.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2025-03-11 10:53 UTC by henning.witte
Modified: 2025-03-18 14:02 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Picture_1 to Settings (66.05 KB, image/jpeg)
2025-03-17 13:32 UTC, henning.witte
Details
Picture_2 to settings (107.88 KB, image/jpeg)
2025-03-17 13:33 UTC, henning.witte
Details
Picture_3 to Settings (117.32 KB, image/jpeg)
2025-03-17 13:33 UTC, henning.witte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description henning.witte 2025-03-11 10:53:05 UTC
Description:
Standard Printer is not selected automaticly. Changing the printer causes changeing the direction of the document from horizontal to vertical.

Steps to Reproduce:
1. open document wich is horizontal
2. When printing the document allways "Microsoft PDF Printer"(bad, not standard printer selected) is automaticlly selected and the Document is horizontal as expectet.
3.Changing the Printer to the one desired, the document switches to vertical direction (very bad, not desired or expected)

All of this behavior appeared after Version 24.2.6 

(printing worked as expectet with the version 24.2.6
But The desiered Printer needed to be selecet because it was allways the Microsoft PDF-Printer, not the standard printer)

Actual Results:
The Printer selections are not saved and needs to be done every time.
When changing the printer, the change of direction from horizontal to vertical is not expected but done anyway.
If printing the document horizontal, Sometimes it is printing the documents vertical anyway (about 5% failure rate(might be human error))

Expected Results:
The Windows configured Standard Printer is selected automatically and the direction of the document is noticed automatically, too. The Direction of the Document stays the same way, even after changing the printer.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: de
Module: SpreadsheetDocument (horizontal)
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no

last Version the printing work with: 24.2.6 (but desired Printer needed to be selecet. no standard printer were selected automatically!)

latest version testet with: 25.2.1
                            24.8.5
Comment 1 V Stuart Foote 2025-03-11 11:49:31 UTC
Is your os/DE set "Let Windows manage my default printer" [1] set to 'On' by chance? Or, 'Off' and manually configured, with a Default indicated on the list of printers?

[1] Win11 Settings -> Bluetooth & Devices -> 'Printer & scanners'
Comment 2 henning.witte 2025-03-11 11:55:00 UTC
Hello, 

it toggle is switched off.
Comment 3 V Stuart Foote 2025-03-11 13:32:33 UTC
Can not confirm. Print... dialog or Printer Settings... dialog both correctly respond to printer as set default for os/DE printing (and printer not under os/DE management).

LO honors a network attached physical printer, a ghostscript based printer, or the Microsoft print to PDF printer.

I would note that when a document is created and saved, there will be a printer selection associated with that document--distinct from what os/DE reports as default printer. Is issue there? You're opening a document with a previously encoded printer...

Does a newly created/saved document behave?

=-testing-=

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 28; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 henning.witte 2025-03-17 13:31:21 UTC
Hello,


I've created a new horizontal calc document and set the settings as followed:
(Libre Office is in German)

- I've marked the area i wanted to print and pressed "Druckbereiche festlegen" (Picture_1)
- i went in "Druckvorschau umschalten" (Strg+Shift+O) there on "Seitenformat"
(Picture_2)
- here i went on "Seite" and changed to horizontal 
(Pictutre_2)
- i went to "Tabelle" and there i chose the option at "Maßstab" "Druckbereiche auf Höhe/Breite verkleinern"
(Picture_3)

Before saving the file i changed the printer to the desired one and seleced the orientation to horizontal again, too  (still not the standard printer automatic selected; Orientation keeps switching to vertival when other printer is chosen) and made a print and saved it.
As you assumed: When loading the saved file, the desiered printer is indeed seleted and it is indeed horizontal. But when changing the printer, the orientiation is switching back to horizontal.
Comment 5 henning.witte 2025-03-17 13:32:41 UTC
Created attachment 199849 [details]
Picture_1 to Settings
Comment 6 henning.witte 2025-03-17 13:33:10 UTC
Created attachment 199850 [details]
Picture_2 to settings
Comment 7 henning.witte 2025-03-17 13:33:43 UTC
Created attachment 199851 [details]
Picture_3 to Settings
Comment 8 V Stuart Foote 2025-03-17 14:45:02 UTC
Confirmed.

(In reply to henning.witte from comment #4)

OK, so if I understand correctly, the issue occurs within in the Print... dialog.

Where, if making a change in printer selection from the list box of available printers, the printer mode does not follow the Page... format defined for the document and in parsing an 'Automatic' mode it ends up in Portrait mode rather than Landscape.

The page properties for the document, sc Calc sheets in this case, should be read and update the Print dialog and Print preview panels with layout correct for the document pages--and that the 'Automatic' detection is not functioning as needed when changing printer selection.

=-testing-=

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 28; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f8a08b2515342e6ef9d91865bb5262640f81703f
CPU threads: 28; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 9 V Stuart Foote 2025-03-17 14:45:28 UTC
Oh and found it is already reported...

*** This bug has been marked as a duplicate of bug 162748 ***
Comment 10 henning.witte 2025-03-18 12:57:17 UTC
(In reply to henning.witte from comment #4)
> Hello,
> 
> 
> I've created a new horizontal calc document and set the settings as followed:
> (Libre Office is in German)
> 
> - I've marked the area i wanted to print and pressed "Druckbereiche
> festlegen" (Picture_1)
> - i went in "Druckvorschau umschalten" (Strg+Shift+O) there on "Seitenformat"
> (Picture_2)
> - here i went on "Seite" and changed to horizontal 
> (Pictutre_2)
> - i went to "Tabelle" and there i chose the option at "Maßstab"
> "Druckbereiche auf Höhe/Breite verkleinern"
> (Picture_3)
> 
> Before saving the file i changed the printer to the desired one and seleced
> the orientation to horizontal again, too  (still not the standard printer
> automatic selected; Orientation keeps switching to vertival when other
> printer is chosen) and made a print and saved it.
> As you assumed: When loading the saved file, the desiered printer is indeed
> seleted and it is indeed horizontal. But when changing the printer, the
> orientiation is switching back to horizontal.


switching back to vertical is ment(potrait)
Comment 11 V Stuart Foote 2025-03-18 14:02:52 UTC
(In reply to henning.witte from comment #10)
> ...
> > orientiation is switching back to horizontal.
> 
> 
> switching back to vertical is ment(potrait)

Yes understood. But thank you for noting the correction...