Seting duplex from code
On my report page1 I have default setting duplex=dmVertical. I try with the next code from page footer to turn off duplex without success:
If I use "page1.duplex := dmNone;" from main procedure (before first pass) works fine
procedure PageFooter1OnBeforePrint(Sender: TfrxComponent);
begin
if engine.finalpass and (engine.totalpages = 1) then
page1.duplex := dmNone;
end;
I also tried with "report.page1.duplex := dmNone" with no success;If I use "page1.duplex := dmNone;" from main procedure (before first pass) works fine
Comments
use something else in the main procedure to determine the duplex setting.
perhaps record count of a dataset.