Email Report Inline

I have some users requesting that a report be emailed inline instead of an attachment. Is there a way to do this? (hopefully without custom scripting)

Not sure how much scripting you consider to be custom…

You would have to get the report as a jpg or png with system.report.getBytes(), then construct your email body as html with an image tag that embeds the image. (Either encoding the image as base64 as data in the image tag, or as a link to a content delivery network where you’ve stored the base64 encoding). Then use system.net.sendEmail() to send it out.

Kathy,

I have a report that I'd like to send inline as well, this is the base64 encoding for the file generated from
Encode Base64 online . [Output was truncated to fit the forum's character limit]

Is this the type of encoding required to complete the inline report feature, and do I need to generate this encoding each time the report is created?

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABKYAAANKCAYAAACwP0aRAACAAElEQVR42uydCbBdRZ3/T4UQdpNniCEgW4ol7GIKMAYM0fzZ9zEFiIAsZthXmRSLAgKaAYnsmEoAI7IMheg4qCiFituowzioyIxQlLuMYqUUERmHqfO/3/NO3/e7/br7nHPffS9v+XyqfpXcs/Ty6z73nv6+X3dnGQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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