How link my dataTable on my report ??

Stimulsoft Reports.NET discussion
Post Reply
Robert Suman
Posts: 16
Joined: Tue Jul 17, 2007 2:38 pm
Location: Brazil

How link my dataTable on my report ??

Post by Robert Suman »

I need connect a datatable in report with DataSet, but without grid.

Help-me please...

:biggrin:

If you speak portuguese, post your MSN here.

The my is trebor_love@ig.com.br

Add-me.

Thanks.
Robert Suman
KP CONSULTING
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How link my dataTable on my report ??

Post by Edward »

Please set Report.CacheAllData property in true.

Thank you.
Robert Suman
Posts: 16
Joined: Tue Jul 17, 2007 2:38 pm
Location: Brazil

How link my dataTable on my report ??

Post by Robert Suman »

Where ????

My application have a DataTable.
I build a report with connection by DataSet.

I copy the code of report and glue in a class.

StiReport report = rptDocumentosCancelados();
report.RegData(DataTable);
stiWebViewer1.Report = report;

The layout of report appears, but the data not appears.

:biggrin:
Robert Suman
KP CONSULTING
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

How link my dataTable on my report ??

Post by Guest »

If you write following code:

Code: Select all

DataSet dataset = new DataSet("NameDataSet");//NameDataSet - name dataset in your report.
dataset.Tables.Add(YourDataTable);
report.RegData(dataset);
then in your report in dataset named "NameDataSet" a new table will be added.

Thank you.
Post Reply