Microsoft.Office.Interop.Word. Can't get "Item" from "CustomDictionaries".

I

irinic

Hello, All

I have a problem of getting Item from Custom Dictionaries. My application i
designed using C++



I used this http://support.microsoft.com/kb/238393/ article to automat
accessing Document Properties. I'm getting CustomDictionaries and try to ge
"Items" from it like



for (long i=1; i<=lCount; i++

bsPath = ""
bsName = ""

IDispatch *pDic

VARIANT result, argument
VariantInit(&result)
argument.vt = VT_I4
argument.lVal = i
AutoWrap(DISPATCH_PROPERTYGET, &result, pDics, "Item", 1
argument)
pDic = result.pdispVal






But every time pDic is NULL. Can anybody please help me? If I try to ge
"ActiveCustomDictionary" from pDics, I get an adequate value.
 

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