Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: display a numbered list on Crystalreport Post Reply Post New Topic
Author Message
harissharon
Newbie
Newbie


Joined: 26 Nov 2007
Online Status: Offline
Posts: 4
Quote harissharon Replybullet Topic: display a numbered list on Crystalreport
    Posted: 30 Nov 2007 at 2:01am

I need to display a numbered list on the crystalreport. The content of the list would be a column of records from database. How can I achieve this??

Thanks,
Haris
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 30 Nov 2007 at 10:48am
Perhaps you want something more complex. But for a simple number list just creat a formula that counts and another that  resets the counter when you need that to happen
 
Something like this:
 
Group Header
resetFormula (suppress formula so it does not show)
 
Details
countFormula
 
The formulas might look like this:
 
resetFormula:
WhilePrintingRecords;
numbervar x := 0;
x;
 
countFormula (place this where you want the number to show):
WhilePrintingRecords;
numbervar x;
x := x + 1;
x;
 
The result is everytime a new line is printed the count go up by 1.
 
Hope this is what you were looking for.
 
Regards,
 
John W.
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.