How to determine which page orientation user selects in Rave (Delphi 7)

Is there a way to find which page orientation (poLandscape or poPortrait) the preview setting chooses? I tried this code:

if RvSystem1.SystemPrinter.Orientation=poPortrait then 
ShowMessage('Portrait')
else 
ShowMessage('Landscape');

      

But this code gives "Portrait" even if I choose Landscape from setup. Can anyone please help?

+2


source to share


1 answer


I know this is really old, but Rave Reports is no longer there. I suggest anyone reading this to STRONGLY consider using another reporting mechanism, for example.



Quick report - http://www.fast-report.com/

0


source







All Articles