Save MRT with registered datasource

Stimulsoft Reports.WEB discussion
Post Reply
fkm_bkk
Posts: 1
Joined: Mon Aug 06, 2018 10:38 am

Save MRT with registered datasource

Post by fkm_bkk »

HI,

Is it possible to save a MRT (in Code) together with the newly Registered( RegData) data source ?

Code: Select all

 	report.Load(Server.MapPath("~/Stimulsoft/MasterReport.mrt"));
    	DataTable dt = Enquiry.GetMasterEnquiry(model);
    	report.RegData(dt);
   	report.Save(Server.MapPath("~/Stimulsoft/MasterReport2.mrt"));
I tried this..but not working.
Lech Kulikowski
Posts: 6266
Joined: Tue Mar 20, 2018 5:34 am

Re: Save MRT with registered datasource

Post by Lech Kulikowski »

Hello,

Yes. Please try to add Synchronize() method:
report.RegData(dt);
report.Dictionary.Synchronize();

Thank you.
Post Reply