Z
Z
Zoya_Murmansk2015-03-11 11:38:55
Delphi
Zoya_Murmansk, 2015-03-11 11:38:55

How to implement grouping in FastReports?

Good afternoon!
There is such a report.
92e4583d2f044c9db5b1159054c19535.jpg
And everything was fine until one day there were double lines.
The result of the SQL query Execution
9e8797a3b6d04c8d894e85965a921a49.jpg
of the report
9639a05891aa4156b669c754397af36a.jpg
It is necessary, where the lines are doubled, to combine them so that it looks something like this
fd3f7d9f65e34355936ec865954152ed.jpg
I understand that I need to write something in the code so that the fields add up, but what? I am an amateur in this matter

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kalapanga, 2015-03-12
@kalapanga

If I understand correctly, no additional calculations are required here. Do you need to visually merge lines with the same address? It can be done and probably even in different ways. That's just in words from memory it's all difficult to state - you need to try. The first option is in the question itself. You can use groups. Grouping by address. If you can get the number of the output line within the group, then you can set a handler for the text of the first 6 columns. which will print the text is only valid in the first one. Or maybe what is displayed from the 7th column should be made a nested report. The view should look like this. But I don’t remember just how it was with the results.
Look at examples to fastreport.

I
instigator21, 2015-03-19
@instigator21

change sql query

A
Alexey Karpan, 2015-04-07
@dvguinf

Post your sql query and I'll help you. It is necessary to change request namely grouping.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question