Removing Customization Code Before E-Mailing a Document (Harry Miller)
When you create a document-level customization for a document, all the copies of the document will be customized too. Even if you save a copy of the document with a different name, when the document is opened it'll try to find and run the code. All the saved data will still be there, it'll just pop up an annoying error message.
In this video I show a couple of ways to remove a customization from a document before you send it to someone.
Resources
ServerDocument.RemoveCustomization Method (2007 System)
ServerDocument.RemoveCustomization Method (2003 System)
ServerDocument Sample
Managing Documents on a Server by Using the ServerDocument Class
Duration: 2 minutes, 19 seconds
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
Comments
Leave a Comment
About VSTO Team
This login represents the Visual Studio Tools for Office team. Many members of the team us this account for publishing technical blog posts.