SafeInspector.SelText

C

chill

Hi all,

I got strange behavior with this property of Redemption.dll.
Sometimes, it does not capture selected text in ActiveExplorer or
ActiveInspector if text was selected:

e.g. in following code sometimes text will be null:

....
Outlook.Application _appObj = blablabla; // initializing in OnConnection()
....

// e.g. in OnStartupComplete():
....
SafeInspector inspector = new SafeInspectorClass();
inspector.Item = _appObj.ActiveExplorer();
string text = inspector.SelText;
....


Have anybody had such a problem?

Thanks.
 
K

Ken Slovak - [MVP - Outlook]

You cannot assign an Inspector object to an Explorer or vice versa. The same
applies for a SafeInspector. An Inspector is for an open Outlook item, an
Explorer is a folder view. You can only do what you want in an open item.
 

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