Print Page | Close Window

Group Header Section Number

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
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=17012
Printed Date: 08 Apr 2025 at 5:47am


Topic: Group Header Section Number
Posted By: Herfian
Subject: Group Header Section Number
Date Posted: 12 Jul 2012 at 2:55am
I have report include with create Group Name Fields in place Group Header Section, I want give sequential number for Group Name Fields to be :
 No.  GroupNameFileds
 1.1  ................
 1.2  ................
 
How to create this formula ?
 
Thanks
 
 



Replies:
Posted By: lockwelle
Date Posted: 12 Jul 2012 at 4:09am
have a shared variable that you increment, then print it. Like:
shared numbervar group1;
shared numbervar group2;
group2 := group2 + 1;
 
totext(group1, "",0) + "." + totext(group2, "", 0)
 
in group1, you would want to both increment and the group1 counter and reset the group2 counter to 0 when the group changes.
 
HTH
 
 



Print Page | Close Window