locked
How to Pass ListArray to my first Crystal Report? RRS feed

  • Question

  • User921007156 posted

    Hi All,

    I'm creating my first Crystal report using ASP.NET VS 2005. I have the standalone version of crystal reports, as well as VS.

    1. Which one should I use, the VS or the standalone version to create the report?

    2. I have a list array that I would like to pass to a crystal report, but I'm not sure how to setup the crystal report to receive the array of data, and how do I call it from my C# server side code, or client ASP page? Is there any sample code?

    3. How do I display the report on the screen, or export out to a file (pdf,excel)?

    Thanks.

    Matt

    Thursday, September 15, 2011 7:37 PM

Answers

  • User220959680 posted

    1. Which one should I use, the VS or the standalone version to create the report?

    Depends on your expertise level. VS provided easy to use tools and goodies. As long as Crystal reports provided in Visual Studio meet your requirements consider VS based ones.

    2. I have a list array that I would like to pass to a crystal report, but I'm not sure how to setup the crystal report to receive the array of data, and how do I call it from my C# server side code, or client ASP page? Is there any sample code?

    http://stackoverflow.com/questions/164621/using-crystal-reports-in-visual-studio-2005-c-net-windows-app

    http://www.codeproject.com/KB/cs/letaonarticle2.aspx

    Google for more...there are number of articles written/done available

    3. How do I display the report on the screen, or export out to a file (pdf,excel)?

    Again, depends on the requirement. you can output PDF or excel as per the client requirement. Note that Crystal reports allows you to download data in different formats by default. No need to write any code.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 15, 2011 8:12 PM

All replies

  • User220959680 posted

    1. Which one should I use, the VS or the standalone version to create the report?

    Depends on your expertise level. VS provided easy to use tools and goodies. As long as Crystal reports provided in Visual Studio meet your requirements consider VS based ones.

    2. I have a list array that I would like to pass to a crystal report, but I'm not sure how to setup the crystal report to receive the array of data, and how do I call it from my C# server side code, or client ASP page? Is there any sample code?

    http://stackoverflow.com/questions/164621/using-crystal-reports-in-visual-studio-2005-c-net-windows-app

    http://www.codeproject.com/KB/cs/letaonarticle2.aspx

    Google for more...there are number of articles written/done available

    3. How do I display the report on the screen, or export out to a file (pdf,excel)?

    Again, depends on the requirement. you can output PDF or excel as per the client requirement. Note that Crystal reports allows you to download data in different formats by default. No need to write any code.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 15, 2011 8:12 PM
  • User116065459 posted

    For woking with Crystal Reports, I would recommend you to refer to this article:

    Working with Crystal Reports

    Thursday, October 20, 2011 11:34 AM