Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HandleRightClick(); The requested member of the collection does not exist. #10

Closed
MikeWilliams-UK opened this issue Aug 2, 2019 · 0 comments
Assignees
Labels
Bug Fixed This has been fixed

Comments

@MikeWilliams-UK
Copy link
Contributor

MikeWilliams-UK commented Aug 2, 2019

HandleRightClick()
The following code should handle case where sentence is not present (not sure why this would happen)

for (int i = 1; i <= sel.Sentences.Count; i++)
{
   var sentence = sel.Sentences[i];
}

Exception

The requested member of the collection does not exist.
System.Runtime.InteropServices.COMException (0x800A1735): The requested member of the collection does not exist.
   at Microsoft.Office.Interop.Word.Sentences.get_Item(Int32 Index)
   at Chem4Word.Chem4WordV3.HandleRightClick(Selection sel) in C:\Dev\vso\chem4word\Version3\src\Chem4Word.V3\Chem4WordV3.cs
@MikeWilliams-UK MikeWilliams-UK added this to the Release 16 (V3.0.28) milestone Aug 2, 2019
@MikeWilliams-UK MikeWilliams-UK changed the title HandleRightClick() - The requested member of the collection does not exist. HandleRightClick(); The requested member of the collection does not exist. Aug 2, 2019
@MikeWilliams-UK MikeWilliams-UK self-assigned this Aug 3, 2019
MikeWilliams-UK added a commit to Chem4Word/Version3-1 that referenced this issue Aug 20, 2019
Added new form for editing of structure's labels

* Fix long standing bug in focus after edit
* Copy bug fixes for GitHub issues [9](Chem4Word/Version3#9) & [10](Chem4Word/Version3#10)

Related work items: #565, #581, #582
@MikeWilliams-UK MikeWilliams-UK added the Fixed This has been fixed label Oct 1, 2019
MikeWilliams-UK added a commit that referenced this issue Oct 2, 2019
* Bug Fix; Series does not contain a matching element in OoXml rendering [#15]
* Bug Fix; Sequence contains no elements in CustomRibbon Edit [#9]
* Bug Fix; System.NullReferenceException in Editor.ChemDoodleWeb800 [#13]
* Bug Fix; HandleRightClick(); The requested member of the collection does not exist. [#10]

Related work items: #563
MikeWilliams-UK added a commit to Chem4Word/Version3-1 that referenced this issue Oct 8, 2019
- Remove space and simplify display of charges spin multiplicity for molecule
- Always select first molecule in label editor

Merge of bug fixes from V3
- Chem4Word/Version3#9
- Chem4Word/Version3#10
- Chem4Word/Version3#13
- Chem4Word/Version3#15
- Better detection of Word Version

Related work items: #627, #629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fixed This has been fixed
Development

No branches or pull requests

1 participant