I have been using write statements within my report including a headings and body.
I cannot use the spool way as I am still within the program. I cannot us the spool way as I have validations within the program to decide whether to email the contents of this report or not.
How can I convert all the headings and body into html and send it using the SO_NEW_DOCUMENT_ATT_SEND_API1 and attach it as an attachment to my email note?
Appreciate if there are some code out there to do this...