New page - recto verso

Hello,

I have some reports that contain a number of groups.
I need to print each group on a new sheet of paper but the customer uses recto verso.
The newpage works fine but starts on the other side of the page when a new group is met.
I need to start with a fysical new page when having a new group.

How can I do this?

Thx,
Bernaert Dominique

Comments

  • LurkingKiwiLurkingKiwi Wellington, New Zealand
    edited 6:04AM
    I think you could do something in the group header like this (untested):

    procedure GroupHeader2OnBeforePrint(Sender: TfrxComponent);
    begin
    engine.newpage;
    if ((<Page> mod 2) = 0) then engine.newpage;
    end;

    You may need to compare to one to get the number of newpage calls right, and possibly to check whether the engine.CurY or some other property indicates that you are at the top of a page already.

Leave a Comment