Page 1 of 1

Save MRT with registered datasource

Posted: Tue Aug 07, 2018 6:16 am
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.

Re: Save MRT with registered datasource

Posted: Thu Aug 09, 2018 6:00 am
by Lech Kulikowski
Hello,

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

Thank you.