I am trying to convert an html file using win32 api, but I am facing error while saving it into doc file.