views:

130

answers:

0

Is there a way to find which page orientation (poLandscape or poPortrait) user selects furing preview setup? I have tried this code:

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

But this code give "Portrait" even if I select Landscape from setup. Can anybody help?