Solved

easy???Delphi Report!!!!

Posted on 2001-07-24
4
270 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now