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 5:08AM
    correct is poLanscape, not land*space*
    and don't use []
  • edited 5:08AM
    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 5:08AM
    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 5:08AM
    Sorry... today i upgrade fastreport to lastest one.. now fast report run smooth!!!

    Thank you

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.