Collate Copies

Collate Copies

Postby MarcoBoschi » Tue Dec 29, 2015 2:13 pm

Hi to all!

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


Code: Select all  Expand view

#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
User avatar
MarcoBoschi
 
Posts: 1015
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Collate Copies

Postby MarcoBoschi » Tue Dec 29, 2015 2:18 pm

I have this problem using an old program Visual Obiect and Report Pro too!
User avatar
MarcoBoschi
 
Posts: 1015
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Collate Copies

Postby Enrico Maria Giordano » Tue Dec 29, 2015 4:25 pm

Marco,

try

Code: Select all  Expand view
PRNSETCOLLATE( lCollate )  --> lSuccess


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Collate Copies

Postby MarcoBoschi » Wed Dec 30, 2015 10:07 am

Ok,
I will try next year!
Many thanks Enrico
User avatar
MarcoBoschi
 
Posts: 1015
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests