Bug 159318 - FILEOPEN DOCX Paper tray settings are not imported correctly
Summary: FILEOPEN DOCX Paper tray settings are not imported correctly
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Page-Style-Dialog DOCX-Page
  Show dependency treegraph
 
Reported: 2024-01-22 09:53 UTC by Gabor Kelemen (allotropia)
Modified: 2024-02-20 08:30 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the example file attachment 192067 (Main tray setting) (82.76 KB, image/png)
2024-01-22 09:53 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the example file attachment 192066 (Automatic tray setting) (80.47 KB, image/png)
2024-01-22 09:54 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-01-22 09:53:37 UTC
Created attachment 192093 [details]
Screenshot of the example file attachment 192067 [details] (Main tray setting)

This is a followup to bug 159254

As noted there, importing the paper tray setting from the docx files does not work yet.

1. In Word, go to the Layout ribbon, open the Page Layout dialog 
2. On the Paper tab -> Paper source section set the First page and Other page trays to a non-default value.
3. Save the file, open in Writer
4. Go to Format - Page Style - Page tab
-> the Paper Tray dropdown has the default value [From printer settings]

Example file is attachment 192067 [details] (Main tray) and attachment 192066 [details] (Automatic tray) but note that the setting is system specific in Word, so my file is probably not going to work on your machine.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d49b0c3654e50ff9b74545140e6f19e008009c33
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2024-01-22 09:54:26 UTC
Created attachment 192094 [details]
Screenshot of the example file attachment 192066 [details] (Automatic tray setting)
Comment 2 Dieter 2024-02-08 16:38:56 UTC
I'm not a developer, but doesn't it depend on bug 159320 (Add support for first / other paper tray selection)?
Comment 3 Gabor Kelemen (allotropia) 2024-02-20 08:30:09 UTC
This was fixed with:

Commit Notification 2024-02-19 18:06:45 CET

Oliver Specht committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/feb08063c47e303bcf399ac90354fbcca1262997

tdf#159254 fix import of printer tray in docx

no unit test though...