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

how to create a report with variing columns

edited February 2005 in General
Hi,

because I'm new to RB it's better to ask if there is an easier way to do
the following.

I've to print a grouped report in several outfits. Different summation
rules in the groopfooter I've solved with different regions and there
visible-property.
Now two versions have to differ in the columns to be print.
The second version:
Columns 3 and 5 should not to be print. The sumfields in column 5 should
be printed in the old col 4 (new: col 2).

In old QR-days I solved it in before-print by shifting all elements to
the new place (setting left).

My idea i.e. is to create an helper-component wherein I can create
groups of the components of the moveable columns. With its properties
LeftFrom (setting the according TppLabel in groupheader) and Visible it
does the operation for the whole group.

Did anyone have an idea to solve it more elegant or without writing the
mentioned component.

--
Best regards
Dietmar Brueckmann

Comments

  • edited February 2005
    Hi Dietmar,

    So essentially you would like to move a set of report objects to a certain
    Left position on your report based on the report you are printing? If this
    is the case, your method seems appropriate. Your helper component could
    contain a list of each group of objects you need to move, then before the
    detail band prints, you could loop through each one of the object in a
    specific group and change their Left properties.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2005
    Nico Cizik (Digital Metaphors) schrieb:

    It's very nice to see that you're answering all questions between hours!!!

    I'll create that component the next time the report changes (now I've
    stored a copy and deleted the columns in the report-designer), or the
    next report would need that feature.

    I'd do it in TppReport.BeforePrint for all band (group-header/footer,
    detail).

    --
    Best regards
    Dietmar Brueckmann
  • edited February 2005
    Dietmar - you will find that their support is top class !


This discussion has been closed.