How do I design and display .Net Crystal reports using VS 2010?
Posted on 2011-03-07
I'm very much a newbie to designing/implementing Crystal reports into the .Net applications.
I'm building a winForm application in which I want to embed some Crystal reports.
I think I more or less understand how to display an existing report in a Crystal Report Viewer
object that's embedded into a win form.
I've done some work with SSRS, so I have some familiarity with reporting.
If I was tied to a backend SQL or ORACLE db, then I think this would be pretty straight forward.
The issue is that is not the case.
We're using a proprietary backend DB. So, using it as connected DB source is not an option.
At runtime, I've basically got a .Net DataTable (Columns, Rows) loaded with data which I want
to display in my Crystal report. I've seen several examples on how to assign the datasource
to a crystal report @ runtime.
The piece I don't understand is... "How do I design my Crystal Report?"
If I was connected to the datasource, then I would see fields availabe from table, view, stored procedure.
But that's not the case here.
How do I define the field set to be used when designing the report?
Is there some sort of custom schema definition that I need to create
(matched against the runtime DataTable columns)?
Is there anything special in terms of databinding that I have to do when I generate/load the report?
Is what I'm trying to do straight forward?
Can you point me to some appropriate tutorials?