Java GUI functions are deprecated in Spotfire S+ version 8.1.
javaGuiReportWindowClear() javaGuiReportWindowSave(fileName)
javaGuiReportWindowClear will clear the
report window.
javaGuiReportWindowSave will
save the contents of the report window to a text file.
javaGuiReportWindowClear()
# Do so dialog actions to put text in the report window
javaGuiReportWindowSave("myresults.txt")