Example creating Table in Crystal Report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

i need to get an example, to create a Table in my Crystal Report only by
having a Dataset. Can someone give me an small example please.

Thx for help

regards

Fabian
 
Hi,


Just create the dataset as usual, then create a new instance of your report
( CR create a class with the same name of the report ) and then use
SetDataSource( dataset ) to assign your dataset to it.


cheers,
 
Hi,

Ok, this i did before, but how do I now create the table into my loaded CR ?

My current Source :

DataSet ds = new DataSet("Sells");
ReportDocument rd = new ReportDocument();
rd.Load("F:\\crRechnung.rpt"); //my CR
rd.SetDataSource(ds);


I now need a way to say something like this :


rd.Section1.addtable(name "table1", coloums 3, rows 4);
rd.Section1.table1.rows[0].coloums[0].text = "Cell 0,0";


Please help me... thx

Fabian
 
Back
Top