Printing 2 Copies of the same report

1,732 views
Skip to first unread message

Pedro Faro

unread,
Nov 18, 2009, 4:40:09 AM11/18/09
to FastReport for [x]Harbour and for Alaska Xbase++
Hi ,

How can i print several copies of the same report , an if possible to
indicate on each "copy " that is an original /duplicate?

Best regards

Pedro Faro

Jose Valle

unread,
Nov 18, 2009, 5:17:39 AM11/18/09
to FastReport for [x]Harbour and for Alaska Xbase++
Hello

From the manual...

:PrintOptions:SetCopies([<nCopies>]) //
Parameters: <nCopies> - a number of the printable copies b
Set or get a number of the printable copies (default - 1)

in script

FrxGlobalVariables['CopyName1']:='Original'
FrxGlobalVariables['CopyName2']:='Copia'

Pedro Faro

unread,
Nov 18, 2009, 7:57:55 AM11/18/09
to FastReport for [x]Harbour and for Alaska Xbase++
Hi Jose Valle,

in my code:

APPDATA:oFastReport:PrintOptions:SetCopies(3)


In FastReport Studio:

procedure GroupHeader1OnAfterPrint(Sender: TfrxComponent);
begin
Set('extenso',''''+<ADOQUERY1."extenso">+'''');
Set('nib_cheque',''''+<ADOQUERY1."nib_ch">+'''');
FrxGlobalVariables['CopyName1']:='Original'; // this
could be in any place ??
FrxGlobalVariables['CopyName2']:='Copia'
end;

begin

end.


In the designer :

[CopyName#]"


Is still doesn´t print anything


Regards

Pedro Faro

Jose Valle

unread,
Nov 18, 2009, 9:50:06 AM11/18/09
to FastReport for [x]Harbour and for Alaska Xbase++
Hola Pedro

I use xbase++, in my prg

FrPrn:PrintOptions:SetCopies(2)
....
FrPrn:PrepareReport()

In the scrip:

begin
AlturaPie := reportsummary1.height;
//pagefooter1.Visible:=True;
FrxGlobalVariables['CopyName0']:='visualizacion';
FrxGlobalVariables['CopyName1']:='Original';
FrxGlobalVariables['CopyName2']:='Copia';

end.

in a text object of the page

[CopyName#]

and it works.

Jose Valle

Pedro Faro

unread,
Nov 18, 2009, 11:01:37 AM11/18/09
to FastReport for [x]Harbour and for Alaska Xbase++
Hi Jose


I Use Xailer

I got it now.


We only see the "ORIGINAL" , "COPIA" ...
if we send to printer.

I always work on preview, and in preview the

[CopyName#] isn't printed.


tanks for help.

Pedro
Reply all
Reply to author
Forward
0 new messages