Solved

easy???Delphi Report!!!!

Posted on 2001-07-24
4
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month7 days, 1 hour left to enroll

622 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