Fórum Fortes Report #331978
24/10/2006
0
Tenho o seguinte código:
if rgOrientacao.ItemIndex = 0
then rlReport.PageSetup.Orientation := poPortrait
else rlReport.PageSetup.Orientation := poLandscape;
Que me gera o seguinte erro na hora de compilar:
Incompatible types ´TRLPageOrientation´ and ´TPrinterOrientation´
alguém sabe como posso resolver?
vlw
Abdigadiga
Curtir tópico
+ 0Posts
24/10/2006
Tnaires
Simples: as constantes poOrientation e poLandscape, do tipo TPrinterOrientation, estão definidas na unit Printers, e também estão definidas na unit RLTypes, sob o tipo TRLPageOrientation.
Basta você substituir a declaração da unit Printers pela unit RLTypes na instrução [b:48e736ed9e]uses[/b:48e736ed9e] da unit.
Gostei + 0
25/10/2006
Abdigadiga
^_^
Gostei + 0
20/02/2008
Rpaiola
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)