0

I've got a somewhat elaborate report I put together which looks great when I preview in VS or when I run it from the SSRS portal. Now I'm trying to email it on a routine basis to a dozen people (all internal resources to my company, for now). I'd really like it to display embedded in the email, vs. as an attachment - people don't open attachments, but they're 100x more likely to look at an inline graphic. Unfortunately Outlook (i.e. Word that does the underlying rendering) doesn't support all HTML tags and the report looks like garbage. Here's the report preview vs. what I get in MHTML. I've Googled far and wide, and haven't found a good workaround yet. I believe the most critical failure point is the use of background images in my tables.

I have to believe somebody has come before me and found some kind of workaround. Any advice is greatly appreciated! enter image description here

enter image description here

AlsoKnownAsJazz
  • 475
  • 4
  • 7
  • For instance, is it possible to implement some failback code within my report, so that when delivered to Outlook clients it gets rendered? Like this example: https://litmus.com/community/discussions/6173-fixed-outlook-background-images – AlsoKnownAsJazz Aug 31 '21 at 20:18

1 Answers1

0

Such things may happen because Outlook uses Word for rendering message bodies. You can read more about the supported and unsupported HTML elements, attributes, and cascading style sheets properties in the Word HTML and CSS Rendering Capabilities in Outlook article.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • Thanks Eugene, I knew that already though - "Unfortunately Outlook (i.e. Word that does the underlying rendering) doesn't support all HTML tags." I'm hoping somebody has found a workaround for implementing background images in table cells using some other mechanism, avoiding the unsupported HTML tags. – AlsoKnownAsJazz Aug 31 '21 at 19:58
  • @AlsoKnownAsJazz not sure if you can try it, but, test by rendering the report and then take a screenshot or a base64 result and that result add it in the message's body... – Marco Aurelio Fernandez Reyes Sep 09 '21 at 21:01