Find with font error

P

Peter

Hi

I have the following problem.
I need to find and report hidden text.
OS = XP
Dev env = MS Visual studio 2008 c++
MS Word version = 2002 sp 3

My app connects an loads MS Word OK
I get a find object from Word.
If I just set it to find some text it
works OK and I get the range.

But when I try to set font properties
in the find object it does not work.

NB it is not just for hidden text it
is for all font properties.

EG: If I set the font to find to font size
16 it does not find the text.
I know it is set cause if I call the function
to get the font size it has font size 16.

When I call the find I call with the following
set and the rest blank.
FindText = ""
Format = True
Forward = True
MatchAllWordForms = True
Wrap = wdFindStop

What am I missing here?
 
P

Peter

Hi
Found my problem

I was setting the font object back into the finder
object and Word does not like this

So you have to set each setting directly into the
finder
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top