Page 1 of 1

How i do, when i have 2 dataset ?

Posted: Fri Dec 02, 2011 5:48 am
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.

How i do, when i have 2 dataset ?

Posted: Fri Dec 02, 2011 8:59 am
by HighAley
Hello.

Please try to add next code after RegData():

Code: Select all

rep.Dictionary.Synchronize();
Thank you.

How i do, when i have 2 dataset ?

Posted: Sat Dec 03, 2011 11:38 am
by gayety
I try to do as you suggest, It remained unchanged.

How i do, when i have 2 dataset ?

Posted: Mon Dec 05, 2011 2:56 am
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.