Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
wpf application will launch the Problem Step Recorder on click of a button. Problem Step Recorder generates a zip file which has the .mht file. i need to convert this .mht to .docx so that i can view the test steps images

What I have tried:

I did not find any code to convert .mht to .docx
Posted
Updated 6-Mar-17 15:08pm
v3
Comments
Foothill 6-Mar-17 16:50pm    
Have you tried opening the files with Internet Explorer?

1 solution

First part of the problem is understanding what format the MHT file is in: What is MHT? What Opens a MHT? File Format List from WhatIs.com[^]

Knowing what it is, it makes sense that you don't need to convert it but instead open it in the WebBrowser control instead. The WebBrowser control uses the IE (not edge) engine, so if you can open the MHT file in IE, then it will work with this control.
 
Share this answer
 
Comments
Arthi Rangaswamy 7-Mar-17 13:09pm    
I have a requirement to open it in a word document and save it as .docx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900