自定义"新"在Word选项卡后台添加自定义模板
我想自定义Word的后台在新建选项卡,而不是另一回事。结果
模板来自Web服务添加自定义模板。我使用的Office 2010应用程序是在C#和Visual Studio 2010开发。
I want customize Word's backstage to add custom templates in "New" tab and not another.
Templates come from a web service. I use Office 2010. Application is develop in C# with Visual Studio 2010.
这可能吗?
您可以添加自定义模板到的新的Word的通过提供XML清单,其中描述了模板和预览图像的位置Backstage视图的标签。
You can add custom templates to the New tab of Word's backstage view by providing an XML manifest, which describes the template and the location of a preview image.
在这里介绍的详细步骤:
The detailed steps are described here:
Deploy custom templates in the 2007 Office system
要知道,虽然这是一个很少使用的功能,因此是相当支持甚少。例如,我发现了以下缺陷:
Be aware though that this is a rarely used feature and therefore is rather poorly supported. For example, I found the following shortcomings:
- 当使用自定义打开文件夹模板第一次,视图是空的。您访问Backstage视图中的第二次,模板中。
- 预览和缩略图缓存在本地。不过,我从来没有发现一种方法来更新本地高速缓存(缓存的位置是
%LOCALAPPDATA%\Microsoft\Office\Spotlight\14
,更换14与任何您的Office版本)。当手动删除缓存,您还必须删除以下注册表项:HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Spotlight\Content\<供应商名称>
(以您的Office版本是14替换)
- When opening the folder with the custom templates the first time, the view is empty. The second time you access the backstage view, the templates are shown.
- Preview and thumbnail images are cached locally. However, I never found a way to update the local cache (the location of the cache is
%LOCALAPPDATA%\Microsoft\Office\Spotlight\14
, replace 14 with whatever your Office version is). When manually deleting the cache, you will also have to delete the following Registry key:HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Spotlight\Content\<provider name>
(replace 14 with whatever your Office version is).