Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Max limit record to display. Post Reply Post New Topic
Author Message
snehal
Newbie
Newbie


Joined: 16 May 2010
Location: India
Online Status: Offline
Posts: 1
Quote snehal Replybullet Topic: Max limit record to display.
     Posted: 17 May 2010 at 6:10pm
Hi all,
 
I am trying to limit detail to display 50 rows in my report.I used below formula.
 
{#RecCount}/50 = int({#RecCount}/50).
 
But it is giving me only 44 number of record in each page.
 
Please help me out.I have not defined width or height of crystal veiwer.Its bestfitpage property is true.
 
Please let meknow how many number of record we can display in one page.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 18 May 2010 at 3:16am
don't know what you are trying to achieve, as that is a 'normal' assignment. What you probably want is:
{#recCount} := int({#recCount}/50)*50
 
either way, the way to assign a value is to use :=
 
HTH
IP IP Logged
Emir_W
Senior Member
Senior Member
Avatar

Joined: 25 Apr 2010
Online Status: Offline
Posts: 228
Quote Emir_W Replybullet Posted: 18 May 2010 at 7:18pm
If what you want is only 50 rows in each page, you can try this:
Create a formula (xxx):
 whileprintingrecords;
 global numbervar linenum;
 if linenum>=50 then 
     linenum:=1
 else
     linenum:=linenum+1
and put it in 'Detail' section and hide/surpress it.
 
Then:
Create a condition for 'Detail' section from Section Expert:
- Check for 'New Page After'
 whileprintingrecords;
 global numbervar linenum;
 linenum>=51
 
It work for my invoice.
 
hope it help.
 


Edited by Emir_W - 18 May 2010 at 10:48pm
Emir W
IP IP Logged
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