FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Collate Copies
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Collate Copies
Posted: Tue Dec 29, 2015 02:13 PM
Hi to all!

How do I fix this code for printing 2 copies and collate copies ?


Code (fw): Select all Collapse
#include "fivewin.ch"
#include "report.ch"

FUNCTION MAIN()
LOCAL oPrn
LOCAL oFnt1


  PRINT oPrn                 ;
        PREVIEW              ;
        TITLE "TEST"
        oPrn:SetPortrait()
        oPrn:SetCopies(2)
        DEFINE FONT oFnt1 NAME "Arial"            SIZE 0, -20  OF oPrn

        PAGE
        oPrn:Say( 900  , 300  , "PAGE 1"   , oFnt1  ,    ,   ,   , 1 )
        ENDPAGE

        PAGE
        oPrn:Say( 900  , 300  , "PAGE 2"  , oFnt1  ,    ,   ,   , 1 )
        ENDPAGE

  ENDPRINT

RELEASE FONT oFnt1

RETURN NIL


I have to print in Yellow and White sheets in this way

White Yellow
Pag 1 , 1
Pag 2 , 2
Pag 3 , 3

and so on


Directly from my code without having to open preferences dialog (of printer)

Many thanks
Marco Boschi
info@marcoboschi.it
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Collate Copies
Posted: Tue Dec 29, 2015 02:18 PM

I have this problem using an old program Visual Obiect and Report Pro too!

Marco Boschi
info@marcoboschi.it
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Collate Copies
Posted: Tue Dec 29, 2015 04:25 PM
Marco,

try

Code (fw): Select all Collapse
PRNSETCOLLATE( lCollate )  --> lSuccess


EMG
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: Collate Copies
Posted: Wed Dec 30, 2015 10:07 AM

Ok,
I will try next year!
Many thanks Enrico

Marco Boschi
info@marcoboschi.it

Continue the discussion