Chem4Word/Version3-2

"Cannot edit Range" Error

tomyan112 opened this issue · 4 comments

Describe the bug
"Cannot edit Range" Error

To Reproduce
Steps to reproduce the behaviour:

  1. Draw something on 2 different word document

  2. While it is calculating
    image

  3. Click a Chem4Word equation in another document

  4. See error

Screenshot
image

Desktop (please complete the following information):
Chem4Word beta 2

@tomyan112 Thanks for the excellent description of the bug, which is one that has been present sinve V3.0 and nobody has yet reported it to us either here or in our Facebook group for support.

I now have something to look into, from your description I can see that our use of ActiveDocument property of the word application might be the issue here as it quite clearly will have changed with the scenario you have described.

@deadlyvices it was as I now suspected caused by using Application.ActiveDocument which in this scenario changes during the rendering process.

I am going to review the use of Application.ActiveDocument to see if I can find any more gotchas before raising internal pull request.

Many thanks for describing the scenario @tomyan112 the target release for this is V3.2.3

Included in V3.2.3 Beta 3