Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: crystal report total varing between develpment mac Post Reply Post New Topic
Author Message
melbenmartin
Newbie
Newbie
Avatar

Joined: 16 Dec 2009
Location: India
Online Status: Offline
Posts: 8
Quote melbenmartin Replybullet Topic: crystal report total varing between develpment mac
    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
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet 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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.