Hi,
We have a set of documents that pick up and load a VSTO customization by specifying an assembly name and location in the customDocumentProperties. eg in WordML the following is specified:
<o:CustomDocumentProperties>
<o:_AssemblyName dt:dt="string">*</o:_AssemblyName>
<o:_AssemblyLocation dt:dt="string">C:\Program Files\test product\test.application</o:_AssemblyLocation>
</o:CustomDocumentProperties>
However during part of our workflow, these documents need to be opened in Word on a server to have certain parts removed before creating pdfs etc. I need to be able to open these documents programmatically without loading the customization. How can I do this For historical reasons, that I cannot change, the documents are passed round the system in the binary word format rather than as wordml.
When I try doing this I get an error message displayed that needs user interaction to remove. Is there any way I can suppress these errors
thanks
Simon

Preventing Document loading customization
Terry Sullivan
Misha,
Thanks very much. That works a treat.
Simon
Debra Dove - MSFT
Office 2003 ships with a loader component that tries to load the VSTO customization when a document with _AssemblyName and _AssemblyLocation document properties is opened.
As far as I know there is no way to supress the error message if VSTO customization fails to load.
What you describe above is the best way to prevent VSTO customization from loading. I have used DSOFile.dll for reading / writing custom document properties and I haven't run into any problems.
miles2t17
Ruiner1111
I have found an ok way of doing this
open the document using the Dsofile.dll document property editor (http://support.microsoft.com/ id=224351), remove the custom document properties then open it using Word. This stops the error messages appearing.
Still it would nice to be able to suppress error messages when opening the document in Word.