Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Always print the same number of detail lines. Post Reply Post New Topic
Author Message
mavrick480
Newbie
Newbie
Avatar

Joined: 02 Jul 2008
Location: United States
Online Status: Offline
Posts: 17
Quote mavrick480 Replybullet Topic: Always print the same number of detail lines.
    Posted: 16 Jul 2008 at 4:47am
I have a situation where the data i may pull will always have no more than 17 detail lines, but will sometimes have less than 17. I need it to always display 17 lines how could i make it display blank lines to make up the difference when there are less than 17 lines?
Charlie
Foam Design Inc.
IP IP Logged
venkatesha
Newbie
Newbie


Joined: 29 Jun 2008
Online Status: Offline
Posts: 35
Quote venkatesha Replybullet Posted: 16 Jul 2008 at 9:54am
I think that will be last record. Have one more extra section in Section Expert of detail section write suppress formula
not  onLastRecord to display only for last record. Also select suppressIfblank on in section expert.

Create one more formula with following code

stringVar str:=" ";
numbervar i;
for i:= 0 to 17-RecordNumber do
    str:=str+chr(13);

str;

and place the same in the detail section.

Cheers

Venkatesh a

IP IP Logged
mavrick480
Newbie
Newbie
Avatar

Joined: 02 Jul 2008
Location: United States
Online Status: Offline
Posts: 17
Quote mavrick480 Replybullet Posted: 16 Jul 2008 at 10:59am
Thank you for the help. But i am very new to crystal and dont really understand your instructions could you please add more detail.
Charlie
Foam Design Inc.
IP IP Logged
valeron
Newbie
Newbie


Joined: 29 Jul 2008
Online Status: Offline
Posts: 3
Quote valeron Replybullet Posted: 29 Jul 2008 at 8:59pm
Hi, Thanks Venkatesh,
I was searching for a way to do this too, you're a lifesaver!
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.070 seconds.