Should I have outlook in order to show mht file in my c# application?
-
Hello, I have a .MHT file with my C# application, I use WebBrowser control to navigate to it at runtime. Is it true that the user should have outlook installed in order to display the mht file correctly as it's stated on MS site: NOTE: "Web archive" is available only if Outlook Express is installed. The ability to save a Web page as a Web archive file is provided by the Inetcomm.dll file (the Microsoft Internet Messaging API file), which is installed by Microsoft Outlook Express 5. http://support.microsoft.com/kb/221787 Please advice. Thanks.
-
Hello, I have a .MHT file with my C# application, I use WebBrowser control to navigate to it at runtime. Is it true that the user should have outlook installed in order to display the mht file correctly as it's stated on MS site: NOTE: "Web archive" is available only if Outlook Express is installed. The ability to save a Web page as a Web archive file is provided by the Inetcomm.dll file (the Microsoft Internet Messaging API file), which is installed by Microsoft Outlook Express 5. http://support.microsoft.com/kb/221787 Please advice. Thanks.
I take it as gospel, after I tried it without Outlook Express installed. BTW, I think OE is installed by default in every Windows installation since Windows 98. You'd probably have to build a machine from scratch to test this. A Virtual Machine, like VMWare or Microsoft's Virtual PC, is great for stuff like this.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Hello, I have a .MHT file with my C# application, I use WebBrowser control to navigate to it at runtime. Is it true that the user should have outlook installed in order to display the mht file correctly as it's stated on MS site: NOTE: "Web archive" is available only if Outlook Express is installed. The ability to save a Web page as a Web archive file is provided by the Inetcomm.dll file (the Microsoft Internet Messaging API file), which is installed by Microsoft Outlook Express 5. http://support.microsoft.com/kb/221787 Please advice. Thanks.
You might check for the existence of the file Inetcomm.dll I found mine in C:\WINDOWS\system32\ string path = "%SystemRoot%\system32\Intercomm.dll"; path = System.Environment.ExpandEnvironmentVariables(path); bool isExist = System.IO.File.Exist(path); A better way might be to try to load the outlook object as a com object though. Then, if someone decides that library should get merged into another library, or decides to change the filename, or decides that dolphins should rule the earth, then you will still be golden if someone was smart enough to leave the functionality somewhere that the com object can get to it.