How to set the size of a page with RaveReport

1

I have a project in Delphi 2010 in which I use RaveReport to perform PDF reports, my question is the following and it is possible to set the% size of the%% of% of the PDF page.

I tried this but it gives error:

var PWidth: Double;

PWidth := 20;
System.BaseReport.PageWidth := PWidth;
    
asked by anonymous 19.10.2016 / 17:55

1 answer

3

Solution to my problem:

procedure TfrmLogger.RvSystemBeforePrint(Sender: TObject);
begin
  with Sender as TBaseReport do
    begin
      Units := unInch;
      UnitsFactor := 1;
      SetPaperSize(DMPAPER_USER, 21, 29.7);
      Units := unCM;
      UnitsFactor := 2.54;
    end;
end;
    
19.10.2016 / 18:40