Home Subreports

Moving Position of Labels according to page width

edited April 2004 in Subreports
Hi,

I have a situation where I've designed a Template report, where the page is
set as Portrait. When I go to print other reports, I load this 'template'
design into the header of the reports I'm printing to print a constant
header for all reports from this application.

I've come up with a situation though, where one of my reports will be
landscape. Howver, my template (being designed in Portrait) has some things
that I want placed (aligned) with the right side of the page. These are
aligned to the right when I print Portrait, but when I merge this with a
landscape design report - those things aren't over far enough.

I was wondering how I go about getting these labels to move further to the
right, so they once again, line up with the right side of the page?

Thanks & Regards

Adam Hair.

Comments

  • edited April 2004

    1. One option is to create two Header templates: HeaderPortrait.rtm and
    HeaderLandscape.rtm

    2. The other approach is that is to write some code to reposition the report
    elements to align with the right edge of the page. You can calculated the
    difference in the page width and then adjust the Left property of the
    applicable report elements. For Letter size paper, you would need to 2.5
    inches (11 - 8.5).





    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited April 2004
    Hi Nard,

    report

    Thanks. This is what I wanted to do, but couldn't find out where to find the
    size of the page. (I want it automatic, so if someone else is using
    different paper, I don't have to hard code for everything).

    But I've found it.... under Report.printersetup.PaperWidth

    Best Regards

    Adam.
This discussion has been closed.