View Single Post
  #2   Report Post  
Edi
 
Posts: n/a
Default

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
coldata/row col)
And by doing that to avoid using the Selection.Information option

Thanks again
Edi


"Edi" wrote:

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.wdEnd OfRangeColumnNumber)

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