FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oPrn:SetCopies(n) Problem
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM

oPrn:SetCopies(n) Problem

Posted: Sat Dec 26, 2009 11:58 AM

When I use oPrn:SetCopies(2) the printer prints
page 1
page 2
page 1
page 2

Is it possible to force the printer to print
page 1
page 1
page 2
page 2

Thanks in advance,
Birol Betoncu

Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
Posts: 130
Joined: Sat Oct 08, 2005 09:38 PM

Re: oPrn:SetCopies(n) Problem (Solved)

Posted: Fri Jan 01, 2010 06:29 PM
I have modified the Tprinter class.
I have inserted the following lines after setcopies method in line 244 and solved my problem

Code (fw): Select all Collapse
 METHOD SetCollate( lOnOff ) INLINE ;              
                               ( PrnSetCollate( lOnOff ),; 
                                 ::Rebuild()            )        

// in your program, call

SetCollate(.T.)  // or SetCollate(.F.)


Birol Betoncu
Birol Betoncu
birol.betoncu@gmail.com
Using Harbour, FWH 19.05, BCC7
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: oPrn:SetCopies(n) Problem

Posted: Sun Jan 03, 2010 07:34 AM

Birol,

Thanks for sharing your solution :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion