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 ?
How i do, when i have 2 dataset ?
- Attachments
-
- 1467.ReportEstimate.mrt
- (33.36 KiB) Downloaded 146 times
How i do, when i have 2 dataset ?
Hello.
Please try to add next code after RegData():
Thank you.
Please try to add next code after RegData():
Code: Select all
rep.Dictionary.Synchronize();
How i do, when i have 2 dataset ?
I try to do as you suggest, It remained unchanged.
How i do, when i have 2 dataset ?
Hello.
You should reg your data with such names as in your report template.
Thank you.
You should reg your data with such names as in your report template.
Code: Select all
stiReportDM.RegData("dsRepEstimate", dsReport);
stiReportDM.RegData("dsPageHeader", dsHeader);