Hi,
I write a word 2003 addin and I have trouble with saving a document which contains CustomDocumentProperties set by me.
Documents are saved in 2 ways:
1st: By intercepting the word's save button --> all OK, the properties included
2st: By clicking on a button of a windows form --> here is the problem
After the button click a new document is created, some CustomDocumentProperties are written like ID and name (max. 20 chars), some text is added to the document and then the document has to be saved but this fails with the following message:
ReportAddIn.WordProcessor: 2011-08-09 17:42:28,418 [4] ERROR saveDocument -
System.Runtime.InteropServices.COMException (0x800A1066): Befehl misslungen
Without writing the custom document properties everything works fine.
For word 2010 and 2007 the code runs fine.
What does the problem is?
Please help...