Print Page | Close Window

Crystal Reports Unbound report?

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11
Printed Date: 28 Apr 2024 at 12:53am


Topic: Crystal Reports Unbound report?
Posted By: farid_nasiri
Subject: Crystal Reports Unbound report?
Date 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?



Replies:
Posted By: rumbafum
Date 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


Posted By: hilfy
Date 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

-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: BrianBischof
Date 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.


Posted By: hilfy
Date 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


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: BrianBischof
Date 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.



Print Page | Close Window