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?
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?