A question about Word Field

W

wangyang

I made an Word Addin With ATL.My Word version is 2007.
why I cannot set the result of the Field with the follow code.
.......
CComQIPtr<Word::Range> rgPtr2 = fdPtr->Result;
rgPtr2->Text = _T("[1]");
CComQIPtr<Word::Range> rgPtr1 = fdPtr->Code;
rgPtr1->Text = .....
.......
the "[1]" display in the field's right as the pure text;
why I cannot set the result of the Field with the follow code?
 

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