Data Connectivity
 Crystal Reports Forum : Crystal Reports .NET 2003 : Data Connectivity
Message Icon Topic: Crystal Reports Unbound report? Post Reply Post New Topic
Author Message
farid_nasiri
Newbie
Newbie


Joined: 14 Nov 2006
Online Status: Offline
Posts: 5
Quote farid_nasiri Replybullet Topic: Crystal Reports Unbound report?
    Posted: 14 Nov 2006 at 11:11pm
I need to write a Crystal Reports report by passing it an array of
objects. The report needs to cycle through the array and print an
address label for each object.

I cannot figure out how to use CR by getting data from an object. Can
anyone help?
IP IP Logged
rumbafum
Newbie
Newbie


Joined: 15 Nov 2006
Location: Portugal
Online Status: Offline
Posts: 6
Quote rumbafum Replybullet Posted: 15 Nov 2006 at 10:40am
well... with so many questions and answers the same time... guess you are using a DataSet to acomplish this... Just print the address in details section of your rpt
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 20 Nov 2006 at 12:04pm

AFAIK, you can't just send an array to use as the data in a report.  I think you have to have a dataset of some sort.

-Dell
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 08 Dec 2006 at 11:26am
If you upgrade to CR.NET 2005, you can pass arrays to the report. But you are right that it can't be done in CR 2003 and you have to convert it to a dataset instead.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 08 Dec 2006 at 2:18pm
But will CR.NET 2005 read an array of objects?  If so, how will it know how to interpret the objects? 
 
-Dell
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 08 Dec 2006 at 2:48pm
Great question. It's on my to-do list for figuring this out. CR 2005 can now print from any object based on the collection class. However, I have no idea how to build the report yet (I'm still focused on XI for now).  I think you have to declare the object in the solution explorer and then tell CR to use that as the data source. But I'm just guessing until I have more time to research it for the next book.
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.063 seconds.