# HTML from the report designer

**URL:** <https://forum.inductiveautomation.com/t/html-from-the-report-designer/10349>\
**Category:** General Discussion\
**Created:** [August 14, 2015, 10:21pm UTC](https://forum.inductiveautomation.com/t/html-from-the-report-designer/10349 "2015-08-14T22:21:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Reed.Schmidt](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@David.Reed.Schmidt](https://forum.inductiveautomation.com/u/David.Reed.Schmidt)\
**Post date:** [August 14, 2015, 10:21pm UTC](https://forum.inductiveautomation.com/t/html-from-the-report-designer/10349/1 "2015-08-14T22:21:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [August 15, 2015, 3:27pm UTC](https://forum.inductiveautomation.com/t/html-from-the-report-designer/10349/2 "2015-08-15T15:27:33Z")

</div>

Try this. I haven’t tested yet.

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