Please help!
PixelPointer
Vaughan, Ontario
<span style='color:blue'>With my current assignment at work, I am certainly running up a few forum posts. I apologise for posting so much, I usually spend about an hour or so trying to find the solution myself, and then I post here. So, here we go again...</span>
I am attempting to sum up Totals for the entire report, and totals for a grouping, and use each in the same row, for different calculations. Basically, I am finding the percentage usage on a whole, and the percentage usage by a summary group. Here is the code that I am using:
The issue that I am running into, is that both totals are showing up the same. Where I want the <span style='color:purple'><extRCRevenues></span> variable to hold the sums for each summary group, and the <span style='color:purple'><extSGRevenues></span> to hold the summary for the entire report.
As always, any assistance is GREATLY appreciated.
I am attempting to sum up Totals for the entire report, and totals for a grouping, and use each in the same row, for different calculations. Basically, I am finding the percentage usage on a whole, and the percentage usage by a summary group. Here is the code that I am using:
procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent);
begin
   if not Engine.FinalPass then
   begin
       //Sum the prices and profit dollars for the entire report                                                             Â
       Set(<extSGRevenues>, Sum(<Price>, MasterData1,1));
       Set(<extSGProfitDollars>, Sum(<ProfitDollars>, MasterData1,1));
   end;
end;
procedure gfSummaryGroupOnBeforePrint(Sender: TfrxComponent);
begin
   if not Engine.FinalPass then
   begin
       //Sum the prices and profit dollars only for summary group                                                             Â
       Set(<extRCRevenues>, Sum(<Price>, MasterData1));
       Set(<extRCProfitDollars>, Sum(<ProfitDollars>, MasterData1));
   end;
end;
The issue that I am running into, is that both totals are showing up the same. Where I want the <span style='color:purple'><extRCRevenues></span> variable to hold the sums for each summary group, and the <span style='color:purple'><extSGRevenues></span> to hold the summary for the entire report.
As always, any assistance is GREATLY appreciated.