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 8:30PM
    wrote:
    It need include some extra unit ?
    No any extra unit. poLandscape, poPortrait declared in the standart Delphi's Printers unit
  • edited 8:30PM
    You are right. I added "Printers" unit to the uses section and solved the problem.
    Thanks.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.