如果使用Visual Studio: 请查看Visual Studio Office工具(VSTO)! http://msdn.microsoft.com/en-us/office/aa905533.aspx