Problem exporting to PDF 2 copies of a report

Hi
I have the next problem: when i print report in a printer, the report works fine, printing the same report twice (2 copies), the first copy with the text "original" and the second with the text "duplicate" by setting in the report code:

frxGlobalVariables := 'ORIGINAL';
frxGlobalVariables := 'DUPLICATE';

And delphi code:

...
report.PrintOptions.Copies:= 2;
if report.PrepareReport(True) then
report.Print;
...

When i try to export to PDF without using a printer, i use a TfrxPDFExport component and the delphi code:

...
report.PrintOptions.Copies:= 2;
if report.PrepareReport(True) then
report.Export(frxPDFExport);
...

The above code generate a PDF file that contain only one copy with the text "ORIGINAL". I need the PDF file to contain two copies in the same way as printing to the printer, the first with the text "ORIGINAL" and the second with the text "DUPLICATE".

I hope that somebody can help me... Thanks for any idea...

Comments

  • edited November 2017
    wrote:
    Exactly the same problem same method, result a 1 page PDF.
  • gpigpi
    edited 5:18AM
    FR's export filters exports one copy only, so you should create report with two copies (original and duplicate) and then export this report to PDF

Leave a Comment