# Embedded HTML Picture in Document

**URL:** <https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165>\
**Category:** Developers Forum\
**Created:** [September 15, 2004, 7:16pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165 "2004-09-15T19:16:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![schinsky](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/schinsky/32/7474_2.png) [@schinsky](https://www.dynamicsuser.net/u/schinsky)\
**Post date:** [September 15, 2004, 7:16pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/1 "2004-09-15T19:16:12Z")

</div>

I have a customer were we’ve Imported an HTML Picture (logo) on to the Sales Order document. When we preview the Order, everything looks great. You now SEND via email and the HTML and BMP file are attached and sent. You try to open the HTML and the logo is not seen. Any ideas why? It seems that the operating system does not where to find the picture attached. Thanks, Steve

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://www.dynamicsuser.net/u/David)\
**Post date:** [September 15, 2004, 7:29pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/2 "2004-09-15T19:29:25Z")

</div>

When the HTML file is created, it is created with another file called pic1.bmp. This BMP file is referenced without a path: ![]() For this reason, if you want to see the picture, the BMP file must be in the same folder as the HTML file. Solution: Save both files in the same folder and open the HTML file.

---

<div class="post-metadata">

**Author:** ![Nelson](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Nelson](https://www.dynamicsuser.net/u/Nelson)\
**Post date:** [September 15, 2004, 7:56pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/3 "2004-09-15T19:56:03Z")

</div>

I understood that the e-mail you send has 2 attachments: 1 HTML file + 1 BMP file. But when the recipient opens the HTML file, the logo (BMP file) is not displayed. If this is what’s happening, it’s because the e-mail client is saving the HTML file to a temporary location in order to open it. However, it has no idea it should also save the BMP file to the same location for correctly displaying it. As far as the e-mail client is concerned, the 2 attachment are not related. The solution is, as David states, manually saving both files to the same folder before opening the HTML file. This kind of defeats the whole purpose, I guess…

---

<div class="post-metadata">

**Author:** ![schinsky](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/schinsky/32/7474_2.png) [@schinsky](https://www.dynamicsuser.net/u/schinsky)\
**Post date:** [September 15, 2004, 8:09pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/4 "2004-09-15T20:09:37Z")

</div>

David: Thank you. I need it to be seemless so the Customer does not have to think. Steve

> quote:
> 
> * * *
> 
> _Originally posted by dgodbout_  
> When the HTML file is created, it is created with another file called pic1.bmp. This BMP file is referenced without a path: ![]() For this reason, if you want to see the picture, the BMP file must be in the same folder as the HTML file. Solution: Save both files in the same folder and open the HTML file.
> 
> * * *

---

<div class="post-metadata">

**Author:** ![schinsky](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/schinsky/32/7474_2.png) [@schinsky](https://www.dynamicsuser.net/u/schinsky)\
**Post date:** [September 15, 2004, 8:13pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/5 "2004-09-15T20:13:01Z")

</div>

Nelson: Thank you and you are correct. I’m looking for a seamless solution. Steve

> quote:
> 
> * * *
> 
> _Originally posted by nelson_  
> I understood that the e-mail you send has 2 attachments: 1 HTML file + 1 BMP file. But when the recipient opens the HTML file, the logo (BMP file) is not displayed. If this is what’s happening, it’s because the e-mail client is saving the HTML file to a temporary location in order to open it. However, it has no idea it should also save the BMP file to the same location for correctly displaying it. As far as the e-mail client is concerned, the 2 attachment are not related. The solution is, as David states, manually saving both files to the same folder before opening the HTML file. This kind of defeats the whole purpose, I guess…
> 
> * * *

---

<div class="post-metadata">

**Author:** ![lars\_westman](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@lars\_westman](https://www.dynamicsuser.net/u/lars_westman)\
**Post date:** [September 15, 2004, 8:30pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/6 "2004-09-15T20:30:10Z")

</div>

You should go for pdf instead. There’s a lot to read about pdf-generation in the forum. I recommend Amyuni PDF Converter. Works nice.

---

<div class="post-metadata">

**Author:** ![Nelson](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Nelson](https://www.dynamicsuser.net/u/Nelson)\
**Post date:** [September 15, 2004, 9:53pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/7 "2004-09-15T21:53:24Z")

</div>

I fully support Lars’ suggestion. There are never any formatting issues with a PDF file.

---

<div class="post-metadata">

**Author:** ![schinsky](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/schinsky/32/7474_2.png) [@schinsky](https://www.dynamicsuser.net/u/schinsky)\
**Post date:** [September 15, 2004, 10:14pm UTC](https://www.dynamicsuser.net/t/embedded-html-picture-in-document/9165/8 "2004-09-15T22:14:18Z")

</div>

Lars and Nelson - I agree this works perfectly.

> quote:
> 
> * * *
> 
> _Originally posted by nelson_  
> I fully support Lars’ suggestion. There are never any formatting issues with a PDF file.
> 
> * * *
