Print Page | Close Window

crystal report total varing between develpment mac

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=13357
Printed Date: 26 May 2024 at 9:17am


Topic: crystal report total varing between develpment mac
Posted By: melbenmartin
Subject: crystal report total varing between develpment mac
Date Posted: 30 May 2011 at 12:02am

HI ,

Good Morning .

I have created a crystal report where in, I am using a calculation in which ,values are being Calculated & Assigned in the details section to Shared varialbes .
 
and accessing the shared variables in report footer is wokring with Development Machine .However,I am getting wrong total in Client Machine . Please find the below code.

<pre lang="css">whileprintingrecords;
Shared currencyvar Expenses_ExpenseTOT;
Shared currencyvar Income_ExpenseTOT;
Shared currencyvar Expenses_IncomeTOT ;
Shared currencyvar Income_IncomeTOT;

shared currencyvar NetProfit ;

shared currencyvar ClosingStock_ExpenseTOT;
shared currencyvar ClosingStock_IncomeTOT;
shared currencyvar OpeningStock_ExpenseTOT;
shared currencyvar OpeningStock_IncomeTOT;
shared currencyvar Purchase_ExpenseTOT ;
shared currencyvar Purchase_IncomeTOT;
shared currencyvar Sales_IncomeTOT;
shared currencyvar Sales_ExpenseTOT;

shared currencyvar NON_IncomeTOT ;
shared currencyvar NON_ExpenseTOT ;

NetProfit :=((Expenses_IncomeTOT +Income_IncomeTOT +NON_IncomeTOT)+((ClosingStock_IncomeTOT + OpeningStock_IncomeTOT + Purchase_IncomeTOT + Sales_IncomeTOT)- (ClosingStock_ExpenseTOT+OpeningStock_ExpenseTOT+Purchase_ExpenseTOT +Sales_ExpenseTOT)))-(Expenses_ExpenseTOT+Income_ExpenseTOT+NON_ExpenseTOT);
NetProfit;</pre>

Please help me on this how to get rid of the problem .

Using Whilereadingrecords. in report footer is correct or not ???

Thanks & Regards,
Martin RObert.

 



-------------
TechRoberts



Replies:
Posted By: lockwelle
Date Posted: 31 May 2011 at 3:25am
what I would try is to print the various shared variables out as a 'debug'.
 
whilereadingrecords...well, I don't know, usually CR will run the formulas WhilePrintingRecords, at least that is what I have always used and been shown.
 
HTH



Print Page | Close Window