FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Duplex printing
Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Duplex printing
Posted: Sun Jan 29, 2006 11:07 AM

How is it done ? oPrn:SetBin(nBin) ??????

How select front and backsize ?

Frank

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Duplex printing
Posted: Sun Jan 29, 2006 02:27 PM

Have a look at PrnDuplex() function.

EMG

Posts: 142
Joined: Sun Oct 09, 2005 10:59 AM
Duplex printing
Posted: Mon Jan 30, 2006 07:04 AM

Enrico,

Thanks , i didn't know this function , but how to use ?

I suppose that it is called after the printobject is called ?

What means DMDUP_HORIZONTAL ?
DMDUP_VERTICAL ?

Will automatically page 1 on the front , page 2 on the back .....

It is difficult to me to test , this week i have at the client to manage duplex printing , i try to save time before the job.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Duplex printing
Posted: Mon Jan 30, 2006 07:41 AM

You can call it before the PRINT command.

From the MSDN:

dmDuplex
Selects duplex or double-sided printing for printers capable of duplex printing. Following are the possible values. Value Meaning
DMDUP_SIMPLEX Normal (nonduplex) printing.
DMDUP_HORIZONTAL Short-edge binding, that is, the long edge of the page is horizontal.
DMDUP_VERTICAL Long-edge binding, that is, the long edge of the page is vertical.

EMG

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re:
Posted: Fri Nov 06, 2020 08:28 AM
Enrico Maria Giordano wrote:You can call it before the PRINT command.

From the MSDN:

dmDuplex
Selects duplex or double-sided printing for printers capable of duplex printing. Following are the possible values. Value Meaning
DMDUP_SIMPLEX Normal (nonduplex) printing.
DMDUP_HORIZONTAL Short-edge binding, that is, the long edge of the page is horizontal.
DMDUP_VERTICAL Long-edge binding, that is, the long edge of the page is vertical.

EMG


where I can see the values for

DMDUP_SIMPLEX
DMDUP_HORIZONTAL
DMDUP_VERTICAL

have you a sample for a test prn duplex ?
I have a Hp1606dn support front retro
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Duplex printing
Posted: Fri Nov 06, 2020 08:41 AM

I think these are the values :

1 DMDUP_SIMPLEX
2 DMDUP_HORIZONTAL
3 DMDUP_VERTICAL

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Duplex printing
Posted: Fri Nov 06, 2020 01:30 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Duplex printing
Posted: Fri Nov 06, 2020 02:05 PM
This is the code I use :
InstPrinter()
PrnLandscape() ;
PrnDuplex( IF(US->RPRTDUP2, 2, 3) )
Anyone any idea where the function InstPrinter() comes from?

I can't remember anymore why I am using it.

Thank you.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion