Reply
 
Thread Tools Display Modes
  #1   Report Post  
Edi
 
Posts: n/a
Default Delayed Selection

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

  #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

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loss of Bookmark After Re-opening File Nick Curl Microsoft Word Help 4 January 4th 05 10:18 PM
replacing data in a word file? It doesn't replace my selection. sftv1 Microsoft Word Help 1 December 14th 04 09:03 PM
Apply a style through the context menu of a selection, so the use. Jacob Page Layout 2 December 10th 04 11:19 AM


All times are GMT +1. The time now is 11:24 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"