Embed Image in report

nverma
Member Posts: 396
Is there any way of embedding an image in a report. Within the report there is an image (BLOB) and some texts.
I saved the report as an HTML using SAVEASHTML function and then I am reading the generated (HTML) file and sending the read information to the Body of an email. All the texts show up properly, however the image (i.e. company logo) is not displayed. All I see an a "Red X" for the image.
How can I embed that image in the body along with the text?
I saved the report as an HTML using SAVEASHTML function and then I am reading the generated (HTML) file and sending the read information to the Body of an email. All the texts show up properly, however the image (i.e. company logo) is not displayed. All I see an a "Red X" for the image.
How can I embed that image in the body along with the text?
0
Comments
-
Did you ensure to call CALCFIELDS to retrieve the data from the blob field?* Daniele Rebussi * | * Rebu NAV Diary *0
-
Yup Yup.
When I open the saved HTML file in internet explorer I can see the image. However, when that data is passed to the body of the email, it displays a Red X for the image.
The reason my manager told me is because the image is not actually embeded in the report. In Order to display an image in an HMTL file, I have to give a location and name of the image(s) URL in the report and when outlook displays the data it will automatically fetch the image. However, the client does not want to upload those images anywhere. Thats why I wanted to know if there is a way to actually embed the image in the report or any other way around this situation.0 -
The only thing that comes to my mind is using an Image control instead of a PictureBox and set in Bitmap property the path of a bitmap accesseble from every client running the SAVEASHTML of this report :-k* Daniele Rebussi * | * Rebu NAV Diary *0
-
It is technically possible to embed resources in a html-document, but NAV will not do this for you. You would need to find or write a tool for this yourself.
But then, think about the format of your document. It is called Hypertext Markup Language, a text document hyperlinking to other resources by design. You should generate your report as PDF or XPS instead.
If the report will be the body of your email, not an attachment, there are ways to link the image in the report to the image that is included into the mail as another part. Don't ask me how to do this in NAV, though.
Yet another option with html is to bundle up the report and all referenced objects in some way, attach that bundle to the mail and instruct the recipient how he must reconstruct the file system structure so the user agent, displaying the html document find it's resources. This is often done using a zip-archive.
But then PDF is so much easier to handle ...0 -
Expandit has a tool to embed images in emails, check it out here. This is not an endorsement of the product, I've only seen a short demo years and years ago.0
-
We just uploaded our logo to our ftp site.
Then added code to the email that pulls the logo from internet using it's link.
<img src="http://www.yourserver.com/email/images/logo.gif">.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions