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.