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

Rotate the whole output

edited July 2002 in General
Hi there,

is there a way to rotate the whole page by 90, 180, 270 degrees.

I have several label printers which use labels showing in all directions.
At designtime of a new label I don?t know the orientation of my used paper,
so I design a normal label (0 degrees).

When I print it and choose the desired printer I have to look which paper is
in my printer and then choose the orientaion in steps of 90 degrees.(This is
automated via a table)

It would be a very cool feature if you could rotate the complete page.
Especially in the label software area it is very important to be free in
orientation. So a property "RotateOutput" would solve all orientation
problems.

Is there a way to implement such functionality ?
If the output is a Bitmap it should be very easy to rotate it.

Thanx in advance

Matthias Veit

Comments

  • edited July 2002
    There are two options that come to mind. You can either render the final
    output to a bitmap and rotate the bitmap. The other options, which I think
    will produce more faithful results and give you more control is to create
    four separate templates (0, 90, 180, and 270 degrees) using the Rotated
    Label component availabled from the Friends section of
    www.digital-metaphors.com. Then to rotate the report you simply load the
    appropriate template.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    Thanx,

    the solution with the rendered Bitmap and then rotating it is much better
    for all objects (Images/Shapes/Labels..) should be rotatable.
    There should only be one document(Report) with a SAP given Number and stuff.

    Can you give me a hint where I have to look for such customizing. Where can
    I interfere and rotate the output ?

    A property like "RotateReport" for TppReport is what I think of.
    This should be a very interesting feature for others too.

    Thanx a lot

    Matthias
  • edited July 2002
    You can use TExtraDevices to render the report pages to a bitmap. One you
    have the bitmap there probably multiple ways you can come up with to rotate
    the image. The one that immediately comes to mind is to simply rotate the
    bitmap matrix. So, for example, if your bitmap is

    RBBG
    GBBR
    GBBR

    then when rotated 90 degrees to the right the new matrix would look like:

    GGR
    BBB
    BBB
    RRG

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.