Solved

easy???Delphi Report!!!!

Posted on 2001-07-24
4
272 Views
Last Modified: 2010-04-06
Well I have been trying and trying but I don' understand what's the problem

well I want to do a report like this

--------------
Client 1
 Import    50
 Import    20
 Import    10
 Import    10
   Subtotal 90
--------------
Client 2
 Import    40
 Import    20
 Import    10
 Import    10
   Subtotal 80
--------------
.
.
.
.
.

That's all that I want to do,,, I did it with "Groups bands" and footer an detail and I tested the example that delphi 4 and delphi 5 contain....
The group is ok but the SubTotal is a total acumulate and it's not and subtotal by group....
i mean...
my report shows something like this
--------------
Client 1
 Import    50
 Import    20
 Import    10
 Import    10
   Subtotal 90
--------------
Client 2
 Import    40
 Import    20
 Import    10
 Import    10
   Subtotal 170
--------------
as U seen it's not that I want to show...It's wrong...
I used an expression to show the "Subtotal"....
Can U explain me how can I do it???
0
Comment
Question by:Iamme
  • 2
4 Comments
 
LVL 4

Expert Comment

by:YodaMage
ID: 6313881
You need to reset your count with each group. There is a flag for that.
0
 

Author Comment

by:Iamme
ID: 6313970
and How can I do it....????
does quick report do it automatically????

can U explain me? please.....?
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 6314217
in your TQRExpr-Object, which i guess you use is a property named resetAfterPrint

set this property to True

from the help

property ResetAfterPrint : Boolean

Description

Set ResetAfterPrint to True if the result of the expressions should be reset to 0 after the component is printed. This is useful for printing totals in group footers where you want the result to reflect only a subset of the records.

meikl ;-)
0
 
LVL 4

Expert Comment

by:YodaMage
ID: 6314284
Sorry, didn't remember specifics of where the flag was, as I don't use quick reports anymore.  : )
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add combobox item based on numbers 9 154
delphi parse string to params 3 137
Is anyone willing to have a look through this code and help debug? 25 84
Delphi inherited method 6 76
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question