The following results in hr = 0x80010105 for options->printHiddenText:
// Set PrintHiddenText to true IDispatch *options = NULL; hr = getObject(app, L"Options", NULL, 0, &options); hr = setBoolProperty(options, L"PrintHiddenText", FALSE);
PrintComments also results in the same error, however DisplayGridLines as below doesn't cause an error.
hr = setBoolProperty(options, L"DisplayGridLines", FALSE);
This is running through word 2007, performing the same logic through VBA works without problems and I have copied and pasted 'PrintHiddenText' from VBA to the c++ code, so there are no spelling mistakes causing the issue. Any ideas what could be the problem?
|
|