how to create a report with variing columns
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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