Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

How to populate a report made with crystal reports

Hi experts.

i 'm a newbie in crystal reports and i need to create a report that lists a field that comes from an arraylist. or a datatable created on runtime.

all the examples i have seen use datasets and dataadapters wich connect to a database.

what i need is to list some strings in the report with data that i have in an arraylist.

my questions are.
what kind of field should i use in the report designer to list the strings?
can i bind that field to a datatable or datacolumn?, ¿how?
can i build that list at runtime?, ¿how?

thanks in advance
0
orugamaldita
Asked:
orugamaldita
1 Solution
 
grayeCommented:
The data binding requirements for Crystal Reports is more limited than most other "bindable" controls (like a DataGrid).   Crystal Reports *really* wants a DataTable...  it doesn't directly support binding by an arraylist, class methods, IList, etc...

You *could* handle the entire Crystal Reports as  a list of parameter strings that you pass via code... but that's a bit tedious (and the whole point of Crystal Reports was to take the tedium out of doing reports).

A solution you might want to consider (or not...) is to create a detached DataTable (without an association with an underlying database), copy your data into the DataTable... then pass the DataTable on to CR.   I'll admit, that's a strange concept... but it might be worth looking into.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now