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

Recalculate report to double size

edited June 2002 in General
Using code, my application dynamically creates a special RB report in
landscape format.

Now some customers need the option that this report be rotated and converted
to double size on demand, that is, a conversion into two separate portrait
pages. Graphics, shapes, etc must be converted to double size and
corresponding new positions. Even font sizes will have to be doubled.
(Luckily, there are no objects in the middle of the original page design,
along the new line of division.)

Has anybody done something like this before? Would love to see some code
snippets..?

--

Mvh/regards
Svein Olav Mytting
Bogstadvn 60A, 0366 Oslo

Comments

  • edited June 2002
    Here is an example that will give you an idea of how to accomplish this. It
    starts with a landscape report. When requested to rotate two section
    subreports are dynamically created (to allow two separate pages). Then all
    the objects are looped through and switched over to either one or the other
    subreport based on whether they are to the left or the right of the divisor
    line. During the process each component is resized to twice its original
    dimensions, it's font is doubled in size, and it is shifted on the page in
    proportion of the old dimensions to the new ones.

    Hopefully this will give you an idea. You'll need to make the logic for
    repositioning element fancier to take into account the fact that you are
    doubling the dimensions while the size of the page isn't exactly doubling in
    both directions.

    http://www.digital-metaphors.com/tips/LandscapeToPortrait.zip

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited June 2002
    You made this just for me? Thanksalot - seems to do the trick!

    By the way, I believe there are now a lot of good coding tips accumulated in
    the www.digital-metaphors.com/tips catalog. Is there a web page with an
    overview of them?

    "Alexander Kramnik (Digital Metaphors)" wrote
This discussion has been closed.