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...
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