Duplex printing

Post Reply
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Duplex printing

Post by Frank Demont »

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

How select front and backsize ?

Frank
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

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.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re:

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Duplex printing

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Duplex printing

Post by karinha »

João Santos - São Paulo - Brasil
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Duplex printing

Post by driessen »

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. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply