Delayed Selection

E

Edi

Hi,

Im trying to catch a selection change event from interop.word object model
but it seems to have some strange delay when im getting into a table the
first time such that for:
selection.get_Information(Word.WdInformation.wdEndOfRangeColumnNumber)

the first time im getting (-1) which means im not in the table at all
for d.click it works fine (returns the currect data)

any idea why is this strange delay happened?
I tried to use OnXmlChange but there is even worse...

thanks
Edi
 
E

Edi

Hi again,

I think I found the bug..
When ever I insert a table into an xml tag
The select event for the table cells is delayed for the first selection of
the table
The result of this behavior is that im getting the wrong data from my table
for the selected cells (i.e. (-1,-1) instead of the correct cells (1,1))

Is there any workaround for this bug?
Or should i put xml tags in each and every cell with the cell data (<row
col>data</row col>)
And by doing that to avoid using the Selection.Information option

Thanks again
Edi
 

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