HTML from the report designer

Is it possible to obtain the html output from a pdf report as a string that I can make part of a system.net.sendEmail() function?

I saw that there is a get html as bytes function associated with the report component. I found it by doing dir(report) on the component. Report refers to the component.

However the system.net.sendEmail() function takes html as a string as in …

Is there a function that allows me to convert the html as bytes into the string html so that I can just insert that into the system.net.sendEmail() function?

Try this. I haven’t tested yet.

from java.lang import String
htmlString = String(htmlBytes)