Solved

quick report 3

Posted on 2001-09-06
4
140 Views
Last Modified: 2010-04-06
Hi there

Giving an expression:

expr1:= a1*b2;

why we can not write

expr2 := sum(expr1.value); // as total
expr3 := sum(expr2.value); // as grand total

best regards.

Med

0
Comment
Question by:medhome
  • 2
4 Comments
 
LVL 6

Expert Comment

by:Jaymol
ID: 6461279
What are you actually trying to do?

John.
0
 
LVL 10

Accepted Solution

by:
Jacco earned 100 total points
ID: 6466540
You can write

expr = sum(a1 * b2)

QR3 does not allow expressions because they did not implement an solver for the order in which expressions are solved. (Excel and MathLab has such a solver). Such a solver is quit difficult to make and allows for circular references like

expr1 = sum(expr2)
expr2 = sum(expr1)

To solve the order in which expressions are solved requires complex analysis of all interdependancies of the expressions.

Aggregate expressions are treated differently in QR3. I think it is even so that an aggregate expression must start with the aggregate function and can nu have other parts. For example:

expr1 = sum(a3) * 5
expr2 = 5 * sum(a3)

Are not allowed to my knowledge.

Regards Jacco
0
 
LVL 10

Expert Comment

by:Jacco
ID: 6466543
In a QuickReport to have total and grandtotal you have to use the "reset after print" property of the aggregate expression.

eGroupTotal = sum(...) "ResetAfterPrint = True" printed on GroupFooter
eGrandTotal = sum(...) "ResetAfterPrint = False" printed on Summary

Regards Jacco
0
 
LVL 17

Expert Comment

by:geobul
ID: 9295666
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

accept Jacco's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

geobul
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi OLE Error 8 95
delphi exception 7 62
Strange behavior when a form is closed 6 51
How do I add a client SSL certificate to a SOAP client in Rad Studio Delphi? 2 42
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

910 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

21 Experts available now in Live!

Get 1:1 Help Now