Can not get the number of Shapes in Protected Mode

P

Philip Chan

After protecting the document, I can't get the number of Shapes of the
document.
The following code doesn't work:

CComPtr<Word::Shapes> pShapes;
hr = doc->get_Shapes(&pShapes);


and the returned hr is E_FAIL.

Can anyone tell the difference of behavior between normal mode and protected
mode?
 

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