Page 1 of 1
How to verify the mrt is correct or not
Posted: Tue Jun 16, 2020 2:48 am
by Lobjey
I save the mrt as string in the database after finish designing.In fact,the mrt is not correct, but it can be saved in the database.When I view it,it show the error massage and cannot go to the design page.
So I want to know,how can i verify the mrt is correct or not.Hope someone for help.
Re: How to verify the mrt is correct or not
Posted: Thu Jun 18, 2020 7:28 am
by Lech Kulikowski
Hello,
Do you mean report rendered errors or error in report file saving?
Thank you.
Re: How to verify the mrt is correct or not
Posted: Fri Jun 19, 2020 7:24 am
by Lobjey
The report rendered errors,the report file can saved successfully.
Re: How to verify the mrt is correct or not
Posted: Fri Jun 19, 2020 2:37 pm
by Lech Kulikowski
Hello,
You can try to use the following code:
Code: Select all
try
{
report.Compile();
report.Render();
}
catch
{ }
var stiChecks = new Stimulsoft.Report.Check.StiCheckEngine().CheckReport(report);
Thank you.