Page Orientation

Hi.. i have some problem.

I made a dialog box in my report.
Let's say dialog box with button "OK" or "Cancel"

"OK" : Page1.Orientation := [poLandspace];
"Cancel" : Page1.Orientation := [poPotrait];

There is an error " undeclare identifier " on poLandspace? ;)

How i change orientation in code?? ;)

Comments

  • edited 9:15PM
    correct is poLanscape, not land*space*
    and don't use []
  • edited 9:15PM
    I already use your suggested. but the error still remain. "Undeclare identifier".

    1. Page1.Orientation := poLanscape;
    2. page1.Orientation := poLandscape;
    3. Page1.Orientation := poPotrait;

    All three code are Undeclare identifier. I Use fastScript 1.7.
    Is there any missing code?
  • edited 9:15PM
    Ops.. almost forgot.. I write those codes aboves in Fast-Report Design.
    not in IDE Delphi. So the error must came from Fast Report compiler or something..
  • edited 9:15PM
    Sorry... today i upgrade fastreport to lastest one.. now fast report run smooth!!!

    Thank you

Leave a Comment