Display dynamic image(s) in HTML Report

Post Reply
User avatar
CrashN8
Site Admin
Site Admin
Posts: 371
Joined: Thu Feb 09, 2017 4:07 pm

Display dynamic image(s) in HTML Report

Post by CrashN8 » Wed Apr 11, 2018 1:14 pm

This post will describe how to include dynamic image from any image file source into CMM-Manager HTML report. As you may know it is possible to set image as background for Graphical Report, however this image will always remain the same image as set from Teach Mode. So what if you want to use a new image each time the program runs?

Save the image file in the same folder that you save HTML report. From Vision system like iNexiv, Nexiv or CMM with Deva camera it is possible to save the current Live Camera View to BMP or JPG file. This will be useful if you'd like to save an image of actual part in report in case of defect, out of tolerance, etc.
html_report_save_image.jpg
Now add a User Note report operation - from Ribbon Tab - Report>Basic Reporting>User Notes. Enter <HTML> code as such - note that "My_Image_File.png" must be replace with actual image file path.

Code: Select all

<img src="My_Image_File.png" width="128" height="128" border="0">
html_report_User_Note.jpg
When viewing the report in CMM-Manager, PDF, Excel, etc. the User Notes report output will only contain the <HTML> text as shown here:
html_report_cmmm.jpg
However when viewed in HTML viewer such as Internet Explorer, Firefox, Chrome, etc. the image will render in the report as shown below:
html_report.jpg
Enjoy:)
You do not have the required permissions to view the files attached to this post.

Post Reply