The xsd provides two things.
First, the thing to design the report off of.
Second, the thing to put the data into (in a specfic format).
Whenever you create a report , you call it something.
EmployeeByDepartmentReport (.rpt). This becomes a real "object", that you
can instantiate.
So if you did a "Add New Item", "Crystal Report", and named it
"EmployeeByDepartmentReport" (.rpt), then you'll have this code.
EmployeeByDepartmentReport empDeptRpt = new EmployeeByDepartmentReport ();
// as in myDataReport myDataReport = new myDataReport();
Here is another walk thru, from Crystal Reports itself:
http://resources.businessobjects.co...rd&dnlPath=rtm_reportingoffadonetdatasets.pdf
The most important lines of that KB are:
EmployeeByDepartmentReport empDeptRpt = new EmployeeByDepartmentReport();
EmployeeDS ds = SomeMethodYouCreateToMakeAnEmployeeDS();
/* Use Report Engine object model to pass populated dataset
to report */
empDeptRpt.SetDataSource (ds);
//CrystalReportViewer1 is the CR Viewer you "drag" onto the webform
/* bind report object with data to the Web Forms Viewer */
CrystalReportViewer1.ReportSource = empDeptRpt;
YOU STILL NEED TO LOOK AT THE KB and go through it, do not rely upon my code
(immediatly above).
I am just pointing out the important aspects/lines of the code.