Crystal Reports - Binding field at runtime.

Posted on 2007-10-11
Last Modified: 2012-06-27
I am looking for an efficient way to display data in a infragistics wegrid and then print the same data in a crystal report.  I figure using an arraylist of structures would eb good, but I cannot reference the field definitions in crystal reprots.  If I create unbound fields in the Crystal Reprot is there a way to then bind them at runtime through code?  
Question by:akobes05
    LVL 100

    Expert Comment

    Can you dump it to an XML file?

    LVL 42

    Expert Comment

    Why not simply base your webgrid and your report from the same dataset?


    Author Comment

    If you are referring to the grid data I suppose I can.  But even if its possible I still do not know how to link regular text object in the report to fields in the xml file.

    Author Comment

    How can I define the dataset in such a way that I can see the structure inside crystal reports?
    LVL 42

    Accepted Solution

    Check this document:

    Page 332+ walks you through creating a report based on a dataset.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    728 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

    22 Experts available now in Live!

    Get 1:1 Help Now