Cannot set Page Orientation at runtime

Can't compile the codes :

procedure TForm1.Report1PrintPage(Page: TfrxReportPage; CopyNo: Integer);
begin
Page.Orientation := poLandscape; // Undecalred identifier :'poLandScape'
Page.Orientation := poPortrait; // Undecalred identifier :'poPortrait'
end;

It need include some extra unit ?

FR VCL 5.6.1 + DELPHI XE2

Thanks.

Comments

  • gpigpi
    edited 7:12PM
    wrote:
    It need include some extra unit ?
    No any extra unit. poLandscape, poPortrait declared in the standart Delphi's Printers unit
  • edited 7:12PM
    You are right. I added "Printers" unit to the uses section and solved the problem.
    Thanks.

Leave a Comment