From: Peter Mark <pmark@sp...> - 2002-01-03 20:40:08
thanks for the pointer - i have gone to the page:
and from there to the download section and downloaded
the various xxxxxxx-bin.zip files, got wvWare.exe and
the 10 or so other necessary dlls (libiconv, libpng,
etc) together in one directory, and, following the
last line of the script "wvText", issued the following
command in a windows 2000 command window :
C:\Program Files\WV\bin> wvWare -x wvText.xml MyWordDoc.doc >
and it works great: the TEXT from the word doc is extracted
into the output text file.
now i'd ideally like to do this from a C++ program (instead
of from the command line), but without writing to an output file.
instead, i'd like to get the text content of the word doc into a
character/string buffer, where i can manipulate it further. i
could do this with what i have already by writing to an output
file (as above) and then reading the file into a text buffer, but
that's obviously slower than just getting it into a buffer
so my question is this:
is there some kind of API i can use from a c++ program that
will let me get at the text content of a word document?
i've looked over the stuff that comes in the file wv-0.7.0-lib.zip
including the files wv.h and wvexporter.h in the \include directory,
as well as the files libwv.def and libwv.lib in the \lib directory,
and obvious approach jumps out at me for how to do this.
is it possible?
if so, how?
is there documentation for how to use the library libwv.lib that comes
> -----Original Message-----
> From: Dom Lachowicz [mailto:cinamod@...]
> Sent: Sunday, December 23, 2001 8:53 AM
> To: pmark@...; wvware-devel@...
> Subject: Re: [Wvware-devel] wvText - distributions for windows?
> >From: Peter Mark <pmark@...>
> >To: "'wvware-devel@...'"
> >Subject: [Wvware-devel] wvText - distributions for windows?
> >Date: Fri, 21 Dec 2001 15:49:15 -0800
> >on this page: http://wvware.sourceforge.net/index.html appears this:
> > wvText: converts word to plain text. Textually correct
> output requires
> > 'lynx.' For poor output, this doesn't require anything special
> >this is exactly what i need: a utility to convert word format to
> >plain text.
> >MY QUESTION:
> >i want the functionality of wvText and i want to run it on
> >a windows machine (NT/2000/XP). can i do this? if i can,
> >what exactly do i have to download and install or build to
> >get this functionality? all the makefiles and so on look
> >like they're meant to run on unix. also: is there some sort
> >of API or SDK or any other mechanism by which i can invoke
> >wvText from a C++ program with a file name chosen by a user at
> >thanks, and best wishes for the holidays.
> >peter mark