Problem with page setup

Hi everyone

(Writer 7.2.4.1 x64 running on Windows 10 21H1)

I’m having a strange problem with page setup - needed for printing label on a Brother QL-1100NWB.

The problem is that I cannot print the entire label, even though I do configure the page dimensions. When entering the print dialog, page dimensions and page orientation is forgotten, and the print preview is showing incorrect dimensions / cropped pages. No matter what I do with the priting dialog, I simply cannot get a complete label printed from the printer.

(I really cannot say, where the 25 mm page length is comming from. It should be 164 mm)

What could be the issue here?

(Sorry for the image mockup … but only one upload was allowed)

Can’t find an answer yet, but see that both left and right margins are set to 1, but the preview in the Page Style dialog shows a broader left margin (not with me: version 7.1.8.1).
Edit your question, to share LibreOffice version and operating system. Thanks.

Updating the printerdriver did the trick - so I’m actually able to print now. :slight_smile:

Still some strange issue regarding dimensions though:

If I select the “Cute PDF printer”, the printing preview does show the preview correctly, for all paper sizes selected within the preview - but when I select the Brother label printer, the preview is displayed incorrectly for most paper sizes.

Printing does work how ever - as the dimension and orientation from the page style, is now preserved when starting the printing preview (or executing the “print” verb on the document in Windows).

Whoups … got the same problem with a complete fresh install on another computer - and having trouble with solving the issue. :-o

This one is using the imperial system, so the 25 mm page length (should be 164 mm), is display as 1 inch at this one.

Now some progress - and a workaround:

It would seem that LibreOffice is having trouble with correctly retrieving other label formats, than the “native” label format, from the printer (printer driver). The default label format for this printer is 103mm x 164mm. When selecting this format, LibreOffice will preview (and print) correctly - even though the loaded media is more like 101.6mm x 164mm

Selecting this media (103 mm while the media is actually 101.6mm) prevents all other applications from printing - so the workaround for me - is to switch printer configuration before printing with LibreOffice - and switching back when printing with LibreOffice has completed.

Luckily for me - printing with LibreOffice is done using PowerShell in my case, so the script just needed to alter printer configuration.

Before printing:

$Hex = @"
42,00,72,00,6f,00,74,00,68,00,65,00,72,00,20,00,51,00,\
4c,00,2d,00,31,00,31,00,31,00,30,00,4e,00,57,00,42,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,04,00,05,\
dc,00,52,01,0f,65,01,00,02,00,81,01,6b,06,f8,03,64,00,01,00,00,00,2c,01,01,\
00,01,00,2c,01,03,00,00,00,31,00,30,00,33,00,6d,00,6d,00,20,00,78,00,20,00,\
31,00,36,00,34,00,6d,00,6d,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,1e,00,00,00,ef,00,81,01,00,00,3b,00,01,00,00,00,1e,00,95,07,00,00,01,\
00,00,00,42,52,50,54,00,00,00,00,00,00,00,00,6b,81,04,00,07,e5,0b,00,50,52,\
49,56,a0,30,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,18,00,00,00,00,00,10,27,10,27,10,27,00,00,\
10,27,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,0d,00,18,00,00,00,00,00,03,00,00,95,07,00,00,6b,06,00,00,6b,06,00,00,30,\
75,00,00,fe,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,01,3b,00,\
00,00,00,00,01,00,01,01,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,6b,81,04,00,07,e5,0b,00,00,00,00,00,00,00,12,01,00,0f,01,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"@

$Data = [byte[]]$($($Hex -replace "\\|\s",'').Split(',') | % { "0x$_"})

New-ItemProperty -Path HKCU:Printers\DevModes2 -Name "Brother QL-1110NWB" -PropertyType Binary -Value $Data -Force | Out-Null
New-ItemProperty -Path HKCU:Printers\DevModePerUser -Name "Brother QL-1110NWB" -PropertyType Binary -Value $Data -Force | Out-Null

After printing, the configuration is switched back, to what I would call “the correct configuration”:

$Hex = @"
42,00,72,00,6f,00,74,00,68,00,65,00,72,00,20,00,51,00,\
4c,00,2d,00,31,00,31,00,31,00,30,00,4e,00,57,00,42,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,04,00,05,\
dc,00,52,01,0f,65,01,00,02,00,4d,01,68,06,e6,00,64,00,01,00,00,00,2c,01,01,\
00,01,00,2c,01,03,00,00,00,4a,00,65,00,6e,00,54,00,72,00,6f,00,6e,00,69,00,\
63,00,00,00,6d,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,1e,00,00,00,ef,00,04,01,00,00,23,00,01,00,00,00,1e,00,91,07,00,00,01,\
00,00,00,42,52,50,54,00,00,00,00,00,00,00,00,6b,81,04,00,07,e5,0b,00,50,52,\
49,56,a0,30,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,18,00,00,00,00,00,10,27,10,27,10,27,00,00,\
10,27,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,18,00,02,00,11,00,00,00,03,00,00,91,07,00,00,68,06,00,00,68,06,00,00,30,\
75,00,00,fe,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,01,23,00,\
00,00,00,00,01,00,01,01,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,6b,81,04,00,07,e5,0b,00,00,00,00,00,00,00,12,01,00,0f,01,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"@

$Data = [byte[]]$($($Hex -replace "\\|\s",'').Split(',') | % { "0x$_"})

New-ItemProperty -Path HKCU:Printers\DevModes2 -Name "Brother QL-1110NWB" -PropertyType Binary -Value $Data -Force | Out-Null
New-ItemProperty -Path HKCU:Printers\DevModePerUser -Name "Brother QL-1110NWB" -PropertyType Binary -Value $Data -Force | Out-Null