How To…Start a Left to Right Column on a New Row

Question

“How can I force each group to start at the beginning of a new row when using left-to-right columns?”

Solution

Inside the GroupFooter.AfterGenerate event, set the TppEngine.CurrentColumn property to -1. This will force the next column printed to be the 0 (first) position.

Download: StartLeftToRightColumnOnNewRow.zip

Sample Delphi code:

procedure TForm1.ppGroupFooterBand1AfterGenerate(Sender: TObject);
begin
  ppReport.Engine.CurrentColumn := -1;

end;