Page 1 of 1

error in DBSRichViewEdit1.PageProperty.Orientation

Posted: Mon Feb 28, 2011 5:20 pm
by valdenir de matos
Hello everybody,
Because this code does not work?

Code: Select all

procedure TFPrincipal.HorientacaoHorizontalExecute(Sender: TObject);
begin
  DBSRichViewEdit1.PageProperty.Orientation := poHorizontal;
end;

procedure TFPrincipal.HorientacaoVerticalExecute(Sender: TObject);
begin
  DBSRichViewEdit1.PageProperty.Orientation := poVertical;
end;
shows this error
E2003 Undeclared identifier: 'poHorizontal'
E2003 Undeclared identifier: 'poVertical'
Thank you for your attention.

Posted: Mon Feb 28, 2011 5:33 pm
by Sergey Tkachenko
Add the unit Printers in "uses".

Posted: Mon Feb 28, 2011 6:03 pm
by valdenir de matos
Add the unit Printers in "uses".
Thanks