View Full Version : How to extract hidden text with office automation?


Susan Kong
02-15-2006, 02:14 AM
Hi there!

I'm using VC++ 6.0 plus Office automation stuff to deal with rtf
file(*.rtf). I'd like to read some text but seems the hidden text can not be
extracted out? However, I can use VBA to extract hidden text.

BTW, I only extract pure text content without consideration of other format
(style, font etc)

Any idea?

Susan

Susan Kong
02-16-2006, 02:02 AM
Digged out all MSDN stuff for programming Office automation with C++, but no
solution found.

I tried to use this line:
oRange.TextRetrievalMode.IncludeHiddenText = TRUE;
but the compile says TextRetrievalMode is not a property/method of object
Range, :-(

Anybody can help?

Susan

> Hi there!
>
> I'm using VC++ 6.0 plus Office automation stuff to deal with rtf
> file(*.rtf). I'd like to read some text but seems the hidden text can not
be
> extracted out? However, I can use VBA to extract hidden text.
>
> BTW, I only extract pure text content without consideration of other
format
> (style, font etc)
>
> Any idea?
>
> Susan
>
>
>