Hey Lars,
There isn't really going to be an easy way to configure TestStand to write a report and clear the report after each section of your code has executed. I do have a couple of recommendations that might help though. The first is that you can do result filtering so if it is not absolutely necessary to see results of steps that just have a status of done, or if you only want to see the steps that fail or error, it is possible to configure this. This should help cut down on the report size. You can configure result filtering from Configure>>Report Options.
You can also try using On the Fly Reporting which should log results after each step executes. You can also check the option to only display the latest results to help conserve memory. This will probably slow down the execution of your test, but it should help with writing the report.
Another thing you might be able to do depending on how your test is set up is to run each block of code in it's own execution using a sequence call step configured to run as a new execution. This would require that you break each chunk of code into a sequence, but it would create a seperate report for each sequence.
The last option would be to modify the process model. This is going to be the hardest, but it would also be the most complete solution in terms of doing exactly what you want to do. I would recommend taking a look at the Single Pass execution entry point of the default sequential process model. There are several steps that concern reporting which would need to be modified. Hope this helps!
Pat P.
Software Engineer
National Instruments