Report on DataTable

Stimulsoft Reports.WEB discussion
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Report on DataTable

Post by jay@bplogix.com »

I added
StiWebDesigner1.GetPreviewDataSet += new StiWebDesigner.StiPreviewDataSetEventHandler(StiWebDesigner1_GetPreviewDataSet);

and

protected void StiWebDesigner1_GetPreviewDataSet(object sender, StiWebDesigner.StiPreviewDataSetEventArgs e)
{
// This is never hit!
}

but my StiWebDesigner1_GetPreviewDataSet is never called even when I hit preview. Am I registering it correctly?

thx!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Report on DataTable

Post by Alex K. »

Hello,

Please see the sample project in attachment.

Thank you.
Attachments
848.WebSite1.zip
(319.93 KiB) Downloaded 215 times
jay@bplogix.com
Posts: 251
Joined: Fri Feb 04, 2011 11:46 am
Location: San Diego, CA

Report on DataTable

Post by jay@bplogix.com »

Perfect, thanks!

It looks like the PreviewDataSet can only supply a single DataSet. Is there an ability to provide multiple preview datasets (e.g. from multiple XML files or in memory DataTables)?

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Report on DataTable

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

e.Report.RegData(dSet1);
e.Report.RegData(dSet2);
...
instead

Code: Select all

e.PreviewDataSet = dSet;
Thank you.
Post Reply