How to verify the mrt is correct or not

Stimulsoft Reports.WEB discussion
Post Reply
Lobjey
Posts: 8
Joined: Tue Mar 24, 2020 6:55 am

How to verify the mrt is correct or not

Post 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.
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: How to verify the mrt is correct or not

Post by Lech Kulikowski »

Hello,

Do you mean report rendered errors or error in report file saving?

Thank you.
Lobjey
Posts: 8
Joined: Tue Mar 24, 2020 6:55 am

Re: How to verify the mrt is correct or not

Post by Lobjey »

The report rendered errors,the report file can saved successfully.
Lech Kulikowski
Posts: 7338
Joined: Tue Mar 20, 2018 5:34 am

Re: How to verify the mrt is correct or not

Post 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.
Post Reply