I don't export the window, but selected output inside the window. Here's an example where a series of charts are saved to MS-Word. I use Native instead of png, by the way. The various _expr variables point to graph builder expressions.
I don't need buttons. The entire point is to have a script that can run automatically. So I didn't use the buttons.
I tried to add a tab box around the entire for-loop. I also tried to add a tab box inside the loop (around both graphs, and tried again around each graph separately. I get no output at all (just a grey window).
If I export the V List Box to word, it works every time but the file is STILL not saved and it only works when Word is opened. So no automation possibilities there.
I changed the type to save as RTF. This does happen! The file keeps looking the same (ugly and unusable).
I could use a vba-macro to open it and edit the content that it looked as it should be, unfortunately, almost every time I get the message that a datatable has become corrupted.
This was tested on several computers just to exclude a problem on my workstation.
Guess it will be time to look for different solutions.