Removing Customization Code Before E-Mailing a Document (Harry Miller)

Published 18 July 08 06:54 PM

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 RSS

Comments

# Pregnant Man » Removing Customization Code Before E-Mailing a Document said on July 18, 2008 10:36 PM:

PingBack from http://wordnew.acne-reveiw.info/?p=10728

# Jie said on August 28, 2008 3:11 PM:

Chinese translation of this post (怎样移除文档和 VSTO 代码的关联):http://blog.joycode.com/vsto/archive/2008/08/29/remove_customization.aspx

# Harit said on September 16, 2008 8:49 AM:

Hi,

Do you have any idea how to make this function work in multiuser environment? if possible reply on my Harit222@yahoo.com mail id....

Thanks in advance.

Leave a Comment

(required) 
(optional)
(required) 

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.
Page view tracker