[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.mht file not diaplaying correctly on client pc

Posted on 2011-10-31
10
Medium Priority
?
923 Views
Last Modified: 2012-05-12
Say,
1. Can you tell me more about .mht files and their universal compatibility across web browsers and OS's?
2. Why does the attached screen shot result on clients pc, but on many other its fine. Client has Win7 with IE8.
mht.docx
0
Comment
Question by:shaunwingin
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 4

Expert Comment

by:mars-vie
ID: 37056509
It looks to me as if a firewall (or IDS) is blocking access to image files, which reside on an internet server.
0
 
LVL 13

Accepted Solution

by:
khairil earned 1500 total points
ID: 37058146
hi,

If it is ok, can you please attach the mht files here? Having this file will help experts here to help you.

The error might be related to few reasons:
1. The images was loaded using javascript, so when it is not saved with mht files
2. The page is ajax page, which have same impact of number 1
3. Security setting on client PC that prevent some element to load or execute which you need to "Unblock" the mht file first.

 blocked
0
 

Author Comment

by:shaunwingin
ID: 37058337
Tx...can you tell me more about .mht files please?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 50

Expert Comment

by:jcimarron
ID: 37058717
0
 
LVL 13

Assisted Solution

by:khairil
khairil earned 1500 total points
ID: 37059020
Basically mht files is text file, encoded with base64 - same like email. It is the way Microsoft did to put all the webpage resources html, css, js, vbs, images into single files. The resources usually have hard links inside the web pages, eg: <img src="\test.png"> or <script src="/scripts/test.js" type="text/javascript"></script>

however, in modern web page development, especially when AJAX comes. Most on the element is "written" on the fly into browwer canvas, which means code inside the html is calling other resources to build the page. So the complex pages seems to have "lesser" html tag because most of it have been done by javascript code. eg: <body onload="update_widget_frame(8, '/system/widget/sessions', 0);" class="main" style="border: 0; margin: 0;"> draws graph of active computer.

In this matter, the resource is not save together with the files as the files only contains code, but not hard link. IE will not parse thru all the javascript code to allocate any resource used by the page.

What happen when this saved mht got loaded into IE? IE will render back all the html tag and try to run the code. If the code try to locate relative source like image, which usually indicate by "/whatsoever/test.png" it will failed. But it might be success to call the absolute path to the resource, "http://myserver/whatsoever/test.png", because the file is located in the right place, the Internet.

Executing code inside mht file will introduce another problem as Microsoft put more retrictions on the name of security. IE will not run the code from mht file that load locally like from c:\user\khairil\desktop\myfile.mht. So IE will failed to render the page correctly until it got right permission to execute code embedded inside mht file, and the code can allocate the availability of other needed resource locally or thru internet.
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 37059211
shaunwingin--I did not tell you about the compatibility of mht with various browsers
http://www.coolutils.com/Formats/MHT
0
 

Author Comment

by:shaunwingin
ID: 37061342
Tx this all helps.
I'm rending mainly text pages in IE or any browser.... They are data reports.
How do you suggest saving them and sending them via email to ensure best compatibility and readability? There are few if any images in the html.
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 37064775
shaunwingin--I would either Save As an .mht file since that puts everything into one file which is easier to send. But it cannot be edited by the recipient.
Or if indeed you only want to send text and allow editing by the recipient,  Highlight the text, Copy, and Paste into a text editor (like Notepad or Wordpad).  Save that as a .txt  or .rtf file and send that file.
0
 

Author Comment

by:shaunwingin
ID: 37068035
khairil: Can I instruct the unblock for Outlook or IE? Whre would I do this. Don't want to have to do this each time?
0
 

Author Closing Comment

by:shaunwingin
ID: 37272282
Still needs some resolution.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question