How to set a page size with Ravereport

Asked

Viewed 79 times

1

I have a project in Delphi 2010 in which I use Ravereport to make PDF reports, my question and the following and possible to define the size Width Heigth from the PDF page.

I tried it but it makes a mistake:

var PWidth: Double;

PWidth := 20;
System.BaseReport.PageWidth := PWidth;
  • What error is happening?

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;
  • Then mark your answer as accepted

  • Okay. Hold on then.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.