I have to convert a MS-word (*.doc/*.docx) file to a text file (*.txt) using a VC++ and MFC.
The problem faced while conversion is that When I try to convert word file to text file the text file is not in the readable form. It shows the text in the form like "´•IOÃ0…ïHü‡ÈW”¸p@5åÀr„JqvIj/ò¸Û¿gÜ%j«¶)P.‘ç½÷yœ™tfºN&àQY“³ë¬Ã0ÒÊT9û¼¤w,Á
Reverse conversion, I mean from text to *.doc is working fine.
I checked the font properties are also same. Even I pasted the converted garbage text to word file, but it produced the same garbage one.
>I want to convert a ms-word file to a text file using vc++(MFC). How can i do this?
If your users will have MS Word installed, you could control Word
through automation to invoke its Save As facility. If they don't, then
the solution may depend on which version of Word documents you need to
>Presently my system has been installed with MS Office 2010. But during program I have to handle all teh MS office versions.
What version of Word (if any) will your target users have installed?
Assuming the users of your application will have Word installed, you
normally have to target the lowest version your users will have. For
starters, have a look here:
Thursday, September 08, 2011 11:48 AM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.