How to populate a report made with crystal reports

Posted on 2005-04-05
Last Modified: 2010-04-23
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
Question by:orugamaldita
    1 Comment
    LVL 41

    Accepted Solution

    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.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now