Programmatically write report to file?

Hello !

I do vast optimizations. Problem is that windows clipboard works really bad with 10 of millions of rows that I could get after optimization is finished. Excel crashes , SPSS just freezes and so on. I can't see in UI how can I save results to CSV, so may be there is a way to write them down in file while optimizing programmatically ?
The only thing that comes to my mind is to user custombacktester with

st = bo.GetPerformanceStats(0);
fputs (st.GetValue("AllQty", filename));

and iterate fputs for every possible property like allqty . May be there is a simpler way ?

Thank you !

Yes, via UI... File menu - Export Html/CSV...


You made my day ! I don't why I didn't noticed that, hahaha