It would be handy if the HTMLObject class had a method that would set the HTML from a custom string. Kind of the set counterpart of getHTMLasString. This way, one could freely create HTML as a string, and be able to use HTMLtoExcel, HTMLtoPDF and HTMLtoRTF to export. Maybe this method is already there, but I could not find it documented.