Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Report data residing in multiple records issue Post Reply Post New Topic
Author Message
claymohr
Newbie
Newbie
Avatar

Joined: 03 Mar 2008
Location: United States
Online Status: Offline
Posts: 2
Quote claymohr Replybullet Topic: Report data residing in multiple records issue
    Posted: 11 May 2011 at 10:05am
Hi all -

I have been digging through the forums and can't find anything like this problem so far... I'm pretty much a CR n00b.

I have an Oracle file that has records written to it for a single report to be generated.

I'm finding that 1 record contains about 95% of what I need, but 3 or 4 or 5 other, mostly blank, records will also get generated that contain 1 or 2 important fields of data I need as well.

I'm thinking I need to create a variable and somehow loop through the records until I find the mostly blank record that contains the info I need and save it to a variable for print time.

Is this the easiest way to do this or is there another way to easily consolidate information?

Thanks in advance for any help.

-C
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 18 May 2011 at 3:46am
if it is all in the same group, you could probably do that, suppressing the details and displaying the results in the group footer...but cr doesn't allow you to just loop through the data in a controlled way. 
 
If you have a middle tier in your app, you can use that to do the looping and build a recordset of what want and pass it to CR...
 
or you could use a stored proc...but since it sounds like you are already getting a file, I would try the middle tier approach first as it will be the most flexible.
 
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.