Example creating Table in Crystal Report

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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,
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top