Metatrader Backtest report HTML

 

Is there a way to print the standard backtest report that comes with MT5 by code?

I mean the report that gets printed when you right click on the backtest tab, and then Report -> HTML

I'd like to save it programmatically

Thanks