How i do, when i have 2 dataset ?

Stimulsoft Reports.WEB discussion
Post Reply
gayety
Posts: 2
Joined: Fri Dec 02, 2011 5:00 am
Location: Thailand

How i do, when i have 2 dataset ?

Post by gayety »

I have 2 datasets in datasource (Report' s Design)

example:

dsReport = sv.GetReportEstimate(dealerId, branchId, fromDate, toDate);
dsHeader = sv.GetHeader(dealerId, branchId);

stiReportDM = new Stimulsoft.Report.StiReport();

stiReportDM.RegData("ds", dsReport);
stiReportDM.RegData("ds2", dsHeader);


stiReportDM.Load(rootPath + "\\StiReports\\ReportEstimate.mrt");

--------------------------------------------------------------

Report shows only data's Header and data's Report not shows

I don't know, where my code incorrects.

Do you understand that i tell ?

thank you.




*** I'm sorry, my English isn't very good.
Attachments
1467.ReportEstimate.mrt
(33.36 KiB) Downloaded 146 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How i do, when i have 2 dataset ?

Post by HighAley »

Hello.

Please try to add next code after RegData():

Code: Select all

rep.Dictionary.Synchronize();
Thank you.
gayety
Posts: 2
Joined: Fri Dec 02, 2011 5:00 am
Location: Thailand

How i do, when i have 2 dataset ?

Post by gayety »

I try to do as you suggest, It remained unchanged.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How i do, when i have 2 dataset ?

Post by HighAley »

Hello.

You should reg your data with such names as in your report template.

Code: Select all

stiReportDM.RegData("dsRepEstimate", dsReport);
stiReportDM.RegData("dsPageHeader", dsHeader);
Thank you.
Post Reply