Fix Dymo label orientation

This commit is contained in:
2026-05-07 14:53:59 +02:00
parent 7e61ba8cac
commit 61ea6f7c96
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ Typische Fehler:
- Falscher Drucker gewählt: im Tab `Drucker` den Dymo LabelWriter auswählen.
- Falsches Etikettenformat im Treiber: im Windows-Druckertreiber `57 x 32 mm` bzw. das passende Label einstellen.
- Ausdruck zu groß oder zu klein: prüfen, ob Treiber-Skalierung deaktiviert ist und das Layout `57 x 32 mm` verwendet.
- Etikett wird gedreht: Treiber-Orientierung und Layout-Orientation `landscape` prüfen.
- Etikett wird gedreht: im Dymo-Treiber das physische Label `57 x 32 mm` wählen. Die App setzt das Papierformat bereits quer als `57 x 32 mm` und sendet keine zusätzliche Windows-Landscape-Rotation.
Noch nicht enthalten sind MySQL-Worker und automatische Datenbankabfrage.
@@ -53,7 +53,10 @@ public sealed class WindowsImagePrinter
document.PrintController = new StandardPrintController();
document.OriginAtMargins = false;
document.DefaultPageSettings.PaperSize = paperSize;
document.DefaultPageSettings.Landscape = labelWidthMm > labelHeightMm;
// The custom paper size already carries the physical label orientation
// (57 x 32 mm for the standard Dymo label). Setting Landscape=true here
// makes some Dymo/Windows drivers rotate the job a second time.
document.DefaultPageSettings.Landscape = false;
document.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
document.PrintPage += (_, args) =>