login about faq

In my iPad application, I need to either read a .mht file or convert the .mht file to a .html file. Am not sure whether Chilkat library helps me in reading a .mht file, but I found there is a method - (BOOL)UnpackMHT to unpack the .mht file and convert it to a .html file. I have set the directory path where the output .html file should get stored. But the problem is, when I call the - (BOOL)UnpackMHT method, there is no output .html file created in my directory. Can anyone help me out?

asked Oct 29 '14 at 09:13

ajitwl07's gravatar image


Look at the contents of the LastErrorText after calling UnpackMHT. If you passed a relative path, then the output file will be relative to the current working directory of the application. Pass an absolute directory if you don't know the current working directory.


answered Oct 30 '14 at 22:35

chilkat's gravatar image

chilkat ♦♦

Tried to view the contents of the mht.LastErrorText property after calling UnpackMHT, but it did not return any FALSE statements and below is the response I got in my Xcode console.

2014-10-30 15:45:58.987 MHTViewer[1455:43524] Last error textChilkatLog:


Seems like the content is empty. I've tried with sample .mht files that had some content in it. But when I try to print the content using LastErrorText, it shows nothing.

And even if the file is created in some other directory, when I do a whole Mac search with the file name, the file should appear right? But it doesn't.

(Oct 31 '14 at 04:42) ajitwl07
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 29 '14 at 09:13

Seen: 3,306 times

Last updated: Oct 31 '14 at 04:42

powered by OSQA