From d29ae37b4057a34a596da4ab070707b13ec89cef Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Mon, 4 Jan 2016 16:48:19 +0100 Subject: Imported Upstream version 2.8.10 --- prnt/hpijs/ljmono.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'prnt/hpijs/ljmono.cpp') diff --git a/prnt/hpijs/ljmono.cpp b/prnt/hpijs/ljmono.cpp index c50700577..6c2473e13 100644 --- a/prnt/hpijs/ljmono.cpp +++ b/prnt/hpijs/ljmono.cpp @@ -199,10 +199,15 @@ DRIVER_ERROR HeaderLJMono::StartSend () strcpy (res, "@PJL SET DUPLEX=OFF\015\012"); #ifdef APDK_AUTODUPLEX - if (thePrintContext->QueryDuplexMode ()) - { - strcpy (res, "@PJL SET DUPLEX=ON\015\012"); - } + DUPLEXMODE dupmode = thePrintContext->QueryDuplexMode (); + if (dupmode != DUPLEXMODE_NONE) + { + strcpy (res, "@PJL SET DUPLEX=ON\015\012@PJL SET BINDING="); + if (dupmode == DUPLEXMODE_BOOK) + strcat (res, "LONGEDGE\015\012"); + else + strcat (res, "SHORTEDGE\015\012"); + } #endif err = thePrinter->Send ((const BYTE *) res, strlen (res)); ERRCHECK; -- cgit v1.2.3