Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

How to set Report.Printersetup.Orientation in RAP

edited November 2002 in RAP
Hi

How can i set the Printersetup.Orientation to Portrait or Landscape with
RAP?

My report has to regions. One for orientatioin portrait and one for
orientation landscape.
It depends on the data weather the report will be printed as portrait or
landscape.

When i use RAP in the ReportBefortPrint - event i get a error message that
there a components
out of range which will be deleted.

Can anyone help me. Thanks in advance.

Best regards
Robert

Comments

  • edited November 2002
    Hi Robert,

    you set the property right, therefore the warning message.
    If you switch from portrait to landscape the layout doesn't change. You need for every orientation a separate template designed for that orientation.

    regards,
    Chris Ueberall;
  • edited November 2002
    Hi Chris


    But how can i use that property printersetup.orientation?
    When i use it for polandscape or poportrait nothing happend with the layout.

    regards
    Robert


  • edited November 2002
    Hi Robert,

    since it isn't useful to change the orientation in RAP use two different layouts (templates).

    regards,
    Chris Ueberall;
  • edited November 2002
    Hi Chris

    Thanks for the answer, but why is there a RAP-command like
    printersetup.orientation implemented when i should not use it?

    regards
    Robert


  • edited November 2002
    Hi Robert,

    at least you can read it!

    regards,
    Chris Ueberall;
This discussion has been closed.